Ik heb in httpd.conf twee vhosts aangemaakt. Maar als ik dan via de browser de domeinnaam in type kom ik in de default directory van apache(versie 1.3.33.) Nu denk ik dat ik een foutje heb gemaakt in het aangeven van de servename (namebased ip?):
Uit de voorbeelden van apache wordt mij nog niet helemaal duidelijk wat ik nu in moet vullen.
ik heb nu:
#
# If you want to use name-based virtual hosts you need to define at
# least one IP address (and port number) for them.
#
NameVirtualHost *:80
#NameVirtualHost 12.34.56.78 //hier iets anders invullen????
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
#
<VirtualHost _default_:*>
</VirtualHost>
# Automatically added by the post-installation script
# as part of the transition to a config directory layout
# similar to apache2, and that will help users to migrate
# from apache to apache2 or revert back easily
Include /etc/apache/conf.d
#mijn virtual hosts:....
<VirtualHost *:80>
DocumentRoot "/var/www/fakelog.nl"
ServerName fakelog.nl
<Directory "/var/www/fakelog.nl">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/var/www/www.reslog.nl"
ServerName reslog.nl
<Directory "/var/www/www.reslog.nl">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
Wat ik wil is dus dat als i www.reslog.nl intyp in die directory kom en dan de index.html te zien krijg. Nu krijg ik de directory en structuur van de /var/www/ map te zien...
Wat moet ik hier veranderen(log moet ik nog toevoegen..)?

Likes:

