Hallo,
ik hoop dat dit topic niet meteen op slot gaan !
Ik heb via de search gezocht op dit onderwerp en heb talloze topics gevonden en uitgeprobeerd.
Helaas blijkt dit niet voor mij te werken !
Ik heb 2 domeinen die gokoppeld zijn aan 1 webserver waar apache op draait.
Als ik http://www.crul.nl in typ, kom ik op het hoofd domein.
Typ ik http://www.techlan.nl in dan kom ik op dezelfde website.
Ik heb een aanpassing gemaakt in de httpd.conf
NameVirtualHost 127.0.0.1:80 staat nu aan
Als virtual hosts wil ik dus techlan toevoegen en naar een andere directory verwijzen
Dit heb op de volgende manier gedaan
<VirtualHost 127.0.0.1:80>
DocumentRoot /home/httpd/www.techlan.nl/html
ServerName www.techlan.nl
ServerAlias techlan.nl
ErrorDocument 401 /
ErrorDocument 402 http://www.techlan.nl
ErrorDocument 403 http://www.techlan.nl
ErrorDocument 404 http://www.techlan.nl
ServerAdmin webmaster@techlan.nl
ScriptAlias /cgi-bin/ /home/httpd/www.techlan.nl/cgi-bin/
ErrorLog /home/httpd/www.techlan.nl/logs/error_log
CustomLog /home/httpd/www.techlan.nl/logs/access_log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" $
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
<Directory "/home/httpd/www.techlan.nl/html">
AllowOverride all
</Directory>
<Directory "/home/httpd/www.techlan.nl/cgi-bin">
Options +ExecCGI
</Directory>
</VirtualHost>
en toch gaat er dus ergens iets niet goed
ik hoop dat dit topic niet meteen op slot gaan !
Ik heb via de search gezocht op dit onderwerp en heb talloze topics gevonden en uitgeprobeerd.
Helaas blijkt dit niet voor mij te werken !
Ik heb 2 domeinen die gokoppeld zijn aan 1 webserver waar apache op draait.
Als ik http://www.crul.nl in typ, kom ik op het hoofd domein.
Typ ik http://www.techlan.nl in dan kom ik op dezelfde website.
Ik heb een aanpassing gemaakt in de httpd.conf
NameVirtualHost 127.0.0.1:80 staat nu aan
Als virtual hosts wil ik dus techlan toevoegen en naar een andere directory verwijzen
Dit heb op de volgende manier gedaan
<VirtualHost 127.0.0.1:80>
DocumentRoot /home/httpd/www.techlan.nl/html
ServerName www.techlan.nl
ServerAlias techlan.nl
ErrorDocument 401 /
ErrorDocument 402 http://www.techlan.nl
ErrorDocument 403 http://www.techlan.nl
ErrorDocument 404 http://www.techlan.nl
ServerAdmin webmaster@techlan.nl
ScriptAlias /cgi-bin/ /home/httpd/www.techlan.nl/cgi-bin/
ErrorLog /home/httpd/www.techlan.nl/logs/error_log
CustomLog /home/httpd/www.techlan.nl/logs/access_log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" $
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
<Directory "/home/httpd/www.techlan.nl/html">
AllowOverride all
</Directory>
<Directory "/home/httpd/www.techlan.nl/cgi-bin">
Options +ExecCGI
</Directory>
</VirtualHost>
en toch gaat er dus ergens iets niet goed
Jaja de paprika