Hallo,
folgendes in
/etc/apache2/vhosts.d/vhosts.conf
wenn ich jetzt http://localhost eingebe komm eich auf http://linux drauf.
aber wenn ich
kann ich auf localhost und auf linux dann läuft es.
Meine frage ist, warum in den ersten code nicht localhost funktioniert?
Localhost ist ja in httpd & default als standard eingetragen oder gibt es eine Reglung?
folgendes in
/etc/apache2/vhosts.d/vhosts.conf
Code:
NameVirtualHost *:80 <VirtualHost *:80> ServerName linux ServerAlias pp DocumentRoot /srv/lamp <Directory "/srv/lamp"> Order Allow,Deny Allow from all #Options All #AllowOverride All </Directory> </VirtualHost> <VirtualHost *:80> ServerName linux2 ServerAlias test DocumentRoot /srv/linux2 <Directory "/srv/linux2"> Order Allow,Deny Allow from all #Options All #AllowOverride All </Directory> </VirtualHost>
aber wenn ich
Code:
NameVirtualHost *:80 <VirtualHost *:80> ServerName localhost ServerAlias 127.0.0.1 DocumentRoot /srv/www/htdocs <Directory "/srv/www/htdocs"> Order Allow,Deny Allow from all #Options All #AllowOverride All </Directory> </VirtualHost> <VirtualHost *:80> ServerName linux ServerAlias pp DocumentRoot /srv/lamp <Directory "/srv/lamp"> Order Allow,Deny Allow from all #Options All #AllowOverride All </Directory> </VirtualHost> <VirtualHost *:80> ServerName linux2 ServerAlias test DocumentRoot /srv/linux2 <Directory "/srv/linux2"> Order Allow,Deny Allow from all #Options All #AllowOverride All </Directory> </VirtualHost>
Meine frage ist, warum in den ersten code nicht localhost funktioniert?
Localhost ist ja in httpd & default als standard eingetragen oder gibt es eine Reglung?
Kommentar