mirror of
https://gitlab.com/ser-cal/m346.git
synced 2024-11-22 21:31:56 +01:00
KN04 Teilauftrag B) ergänzt
This commit is contained in:
parent
6b550e5c3f
commit
cda8bb35e2
51
KN04/KN04.md
51
KN04/KN04.md
@ -85,6 +85,57 @@ Das Skript wird eine Ubuntu-Instanz konfigurieren, den Apache Webserver installi
|
|||||||
|
|
||||||
#### Anleitung
|
#### Anleitung
|
||||||
|
|
||||||
|
Verwenden Sie den folgenden Inhalt für die Gestaltung Ihrer Webseite:
|
||||||
|
|
||||||
|
```php
|
||||||
|
#cloud-config
|
||||||
|
users:
|
||||||
|
- name: ubuntu
|
||||||
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||||
|
groups: users, admin
|
||||||
|
home: /home/ubuntu
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_authorized_keys:
|
||||||
|
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7uUevS7iVPRPFAmdCAIAk7xg7szJUBhmRhLlNgGg3hQb8Zify0Mvm28yO/BW9XUdgW85pmcmbpyP7Y+pDkWHEFbWBjFdTgmYyoszn08fIsApcVJkauqDLmaz9Fd+FtyZGFJapdgR34nLiT1meklO8/Z/mynSYFuzAWClmRiyZXPok2qQJM/xqZRCudatskYJFobiS/+9pSvohIMT/WLhaBsJStctK1QWWQTuPsfO/6QKFkM378qUeJ74lGBfd7cU0Z3i0B3t9r/bhVu0vsyfQdbiWqL3Bhzl2n/KHaDi2t4mcJwEVIDyzr+6vkSLdu3X09vCcsJPGnLirTHVUGo07 calisto-1
|
||||||
|
disable_root: false
|
||||||
|
package_update: true
|
||||||
|
packages:
|
||||||
|
- apache2
|
||||||
|
- curl
|
||||||
|
- wget
|
||||||
|
- php
|
||||||
|
- libapache2-mod-php
|
||||||
|
write_files:
|
||||||
|
- content: |
|
||||||
|
<?php phpinfo(); ?>
|
||||||
|
path: /var/www/html/info.php
|
||||||
|
permissions: '0644'
|
||||||
|
write_files:
|
||||||
|
- content: |
|
||||||
|
<?php
|
||||||
|
$ihrname = "Calisto";
|
||||||
|
?>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title><?php echo $ihrname; ?></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Mein Lieblingsverein</h1>
|
||||||
|
<br />
|
||||||
|
<img src="https://calistos-kn04-bucket2.s3.amazonaws.com/fcz.jpg" alt="Bild aus S3-Bucket">
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
path: /var/www/html/test.php
|
||||||
|
permissions: '0644'
|
||||||
|
runcmd:
|
||||||
|
- sudo systemctl restart apache2
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Schritte
|
##### Schritte
|
||||||
|
|
||||||
1. Öffnen Sie die [AWS Management Console](https://aws.amazon.com/console/).
|
1. Öffnen Sie die [AWS Management Console](https://aws.amazon.com/console/).
|
||||||
|
Loading…
Reference in New Issue
Block a user