Hi,
I'm trying to set up a simple virtual host in apache, but i'm having
problems with it. My current setup is this.
windows 2000
Apache 2.0.4
i'm using the free dyndns.org service
i have a dynamic ip address
i use a cable modem connected to a router
obviously my computer's address is different from the router's address
which is the address that dyndns.org sees.
I have an option in my router software that allows me to send all port
80 trafic to my computer's ip (i have two computers connected to the
router).
Below is the current setup in the configuration file.
Listen 80
ServerName mainfolder.dyndns.org:80
NameVirtualHost mainfolder.dyndns.org:80
<VirtualHost mainfolder.dyndns.org>
ServerName mainfolder.dyndns.org
DocumentRoot D:\web
</VirtualHost>
<VirtualHost mainfolder.dyndns.org>
ServerName mainserver.dyndns.org
DocumentRoot D:\web\phptrash
</VirtualHost>
<VirtualHost mainfolder.dyndns.org>
ServerName ermal.dyndns.org
DocumentRoot D:\web\ermal
</VirtualHost>
As you can see i have tried to set up 3 diff. addresses to fetch diff
content from diff. directories. What happens is that all the
different addresses lead to the same directory which is the main
directory D:\web.
Can anyone tell me what i am doing wrong or if there is another way of
doing it?
Help will be greatly apreciated.
>> Stay informed about: apache virtual host issues