Subdomain - Ubuntu erstellen: Unterschied zwischen den Versionen
Erscheinungsbild
Die Seite wurde neu angelegt: „<syntaxhighlight lang="bash"> <VirtualHost 78.47.142.214:80> ServerName foto2.patrickitten.ch DocumentRoot /var/www/html/foto <Directory /var/www/…“ |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
In der hosts eintragen: | |||
78.47.142.214 foto2.patrickitten.ch | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
<VirtualHost | #subdomain foto.patrickitten.ch | ||
ServerName | <VirtualHost *:80> | ||
ServerName foto.patrickitten.ch | |||
DocumentRoot /var/www/html/foto | DocumentRoot /var/www/html/foto | ||
<Directory /var/www/html/foto> | <Directory /var/www/html/foto> | ||
Version vom 27. Mai 2015, 14:20 Uhr
In der hosts eintragen:
78.47.142.214 foto2.patrickitten.ch
#subdomain foto.patrickitten.ch
<VirtualHost *:80>
ServerName foto.patrickitten.ch
DocumentRoot /var/www/html/foto
<Directory /var/www/html/foto>
# enable the .htaccess rewrites
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error_orlybg.log
CustomLog ${APACHE_LOG_DIR}/access_orlybg.log combined
</VirtualHost>