Hi Experts,
I am a beginner in setting up apache webserver and subdomains. Though, I went through several posts on this forum I think my problem is kind of unique and am hoping some expert can poin beme to the right direction.
I have a domain (say dummy.org) registered with go daddy. Using the "DNS manager" on godaddy I have set up the domain to point to a linksys router which has a static IP address, 129.85.18.32. On the router set up , I have arranged for port forwarding on port 80 to port 80 of a computer that runs apache 2.0 webserver (mandrake) with TCP enabled (UDP disabled). I have setup the virual hosts file as shown below. I have also created a CNAME enty for a subdomain called edison that points to 129.85.18.32
NameVirtualHost 129.85.18.32
<VirtualHost 129.85.18.32>
ServerName edison.dummy.org
DocumentRoot /home/john/public_html
</VirtualHost>
<VirtualHost 129.85.18.32>
ServerName ServerAlias dummy.org*.dummy.org
DocumentRoot /var/</VirtualHost>
however when I request it retrieves ie to say, it looks up index.html in /var/ but NOT in /home/john/public_html as set up in the virtual hosts file. I dont know what I am doing wrong, please help
thanks to all of you who constantly make this world a better place.
john
I am a beginner in setting up apache webserver and subdomains. Though, I went through several posts on this forum I think my problem is kind of unique and am hoping some expert can poin beme to the right direction.
I have a domain (say dummy.org) registered with go daddy. Using the "DNS manager" on godaddy I have set up the domain to point to a linksys router which has a static IP address, 129.85.18.32. On the router set up , I have arranged for port forwarding on port 80 to port 80 of a computer that runs apache 2.0 webserver (mandrake) with TCP enabled (UDP disabled). I have setup the virual hosts file as shown below. I have also created a CNAME enty for a subdomain called edison that points to 129.85.18.32
NameVirtualHost 129.85.18.32
<VirtualHost 129.85.18.32>
ServerName edison.dummy.org
DocumentRoot /home/john/public_html
</VirtualHost>
<VirtualHost 129.85.18.32>
ServerName ServerAlias dummy.org*.dummy.org
DocumentRoot /var/</VirtualHost>
however when I request it retrieves ie to say, it looks up index.html in /var/ but NOT in /home/john/public_html as set up in the virtual hosts file. I dont know what I am doing wrong, please help
thanks to all of you who constantly make this world a better place.
john