sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #92369
virtual host apache2
Jeg har to virtual hosts, men serveren viser altid kun indholdet fra den ene
i min browser.
I min /etc/apache2/sites-enabled/ har jeg
alleservices:/etc/apache2/sites-enabled# ls
mail.myserver.dk myserver.dk
Indholdet af mail.myserver.dk er
<VirtualHost *>
ServerName mail.myserver.dk
DocumentRoot /usr/share/squirrelmail
Alias /squirrelmail /usr/share/squirrelmail
<Directory /usr/share/squirrelmail>
Options Indexes FollowSymLinks
<IfModule mod_php4.c>
php_flag register_globals off
</IfModule>
<IfModule mod_php5.c>
php_flag register_globals off
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
<Files configtest.php>
order deny,allow
deny from all
allow from 127.0.0.1
</Files>
Order Deny,Allow
Allow from all
Options Indexes MultiViews
</Directory>
</VirtualHost>
Indholdet af myserver.dk er
<VirtualHost * >
ServerName www.myserver.dk
DocumentRoot /var/www/myserver.dk/docs
<Directory /var/www/myserver.dk/docs>
AddType application/x-httpd-php .php .phtml .php3
Order Deny,Allow
Allow from all
# Don't show indexes for directories
Options Indexes MultiViews
</Directory>
</VirtualHost>
Uanset hvad jeg skriver i min browser (www.myserver.dk eller
mail.myserver.dk) så får jeg mail.myserver.dk
Hvorfor?
Follow ups