[svlug] Port 80 forwarding

Gary Lin glin at employees.org
Fri Jul 30 00:49:47 PDT 2004


Hi Skip,
    In your apache config, should you put "jeffersonvalleypresents.org" 
rather than "jeffersonvalleypresents.com"?
    -- Gary

skip evans wrote:

> Hey all,
>
> My ISP here in the little mountain town finally decided to forward 
> port 80 on to me, in an attempt to make my server accessible. Here's 
> the scenario...
>
> My Linksys BEFSR41 router is configured to his 192.168.0.29 subnet 
> address, and my BSD box is set as 192.168.1.100 behind the router. He 
> forwards port 80 requests to me, and I have the router forward them to 
> the BSD box. All works well, except that I need to use virtual hosting 
> under apache for a few different sites.
>
> In my httpd.conf file I have...
>
> ServerName venomouspenguin.com
>
> DocumentRoot /usr/local/apache/htdocs/vp/html
>
> And for the virtual hosting...
>
> NameVirtualHost *
>
> <VirtualHost *>
> DocumentRoot /usr/local/apache/htdocs/vp/html
> ServerName venomouspenguin.com
> </VirtualHost>
>
> <VirtualHost *>
> DocumentRoot /usr/local/apache/htdocs/jvp/html
> ServerName jeffersonvalleypresents.com
> </VirtualHost>
>
> Both domain names, venomouspenguin.com and jeffersonvalleypresents.org 
> have their A records set to his static IP, where the http requests are 
> forwarded from.
>
> The problem is requests to either domain names return the document 
> root of whatever VirtualHost entry appears first, leading me to 
> believe that maybe the domain names do not end up at my server, 
> leaving Apache with no alternative but to use the default first entry. 
> Even the DocumentRoot setting above the VirtualHost blocks makes no 
> difference. It always uses the first entry in the VirtualHosts blocks.
>
> Does my suspicion sound correct?
>
> I tried to leave out the Linksys router and plug by BSD box directly 
> into the internet, but that way I was unable to access the server 
> through http at all. I did set its IP to the .29 number and to his 
> default gateway, still no dice.
>
> Any help would be greatly appreciated. I can access the sites by 
> removing VHing, but the theater company is pretty peeved it's taken 
> this long to get their site up, and won't be happy when their snazzy 
> new domain name doesn't work.
>
> Thanks,
>
> Skip Evans
> A tired 1:30am in Mootown USA
>
> _________________________________________________________________
> Discover the best of the best at MSN Luxury Living. http://lexus.msn.com/
>
>
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/svlug






More information about the svlug mailing list