Ik heb 2 virtuele hosts gemaakt. Code zegt meer dan woorden:
bartvanheukelom.nl
finance.bartvanheukelom.nl
Als ik finance.bartvanheukelom.nl opvraag kom ik echter gewoon op www.bartvanheukelom.nl (de wordpress op bartvanheukelom.nl redirect alles naar de www-variant van het adres). Het lijkt alsof de tweede host genegeerd wordt.
De hosts zijn in hun eigen .conf gedefinieerd in /etc/apache2/sites-available, met een link in sites-enabled
bartvanheukelom.nl
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| <VirtualHost 85.214.73.89:80> SuexecUserGroup "#1001" "#1002" ServerName bartvanheukelom.nl ServerAlias www.bartvanheukelom.nl ServerAlias heukelom.net ServerAlias *.heukelom.net DocumentRoot /home/bartvh/public_html ErrorLog /home/bartvh/logs/error_log CustomLog /home/bartvh/logs/access_log combined DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory /home/bartvh/public_html> Options Indexes IncludesNOEXEC FollowSymLinks allow from all AllowOverride All </Directory> </VirtualHost> |
finance.bartvanheukelom.nl
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| <VirtualHost *> DocumentRoot /home/bartvh/finance/public ServerName finance.bartvanheukelom.nl SuexecUserGroup "#1001" "#1002" ErrorLog /home/bartvh/finance/var/log/error_log CustomLog /home/bartvh/finance/var/log/access_log combined DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory "/home/bartvh/finance/public"> allow from all Options +Indexes </Directory> </VirtualHost> |
Als ik finance.bartvanheukelom.nl opvraag kom ik echter gewoon op www.bartvanheukelom.nl (de wordpress op bartvanheukelom.nl redirect alles naar de www-variant van het adres). Het lijkt alsof de tweede host genegeerd wordt.
De hosts zijn in hun eigen .conf gedefinieerd in /etc/apache2/sites-available, met een link in sites-enabled