View Single Post

  #5 (permalink)  
Old 08-25-2005
David Efflandt
 
Posts: n/a
Default Re: WinXP Home + Apache 2.0.54 + NO-IP.com + D-Link DSL-500T + Port 8080 + Document Root E

On Wed, 24 Aug 2005 14:33:44 +0800, Jerry Ching <jerryching@hotmail.com> wrote:
> Have try about what you say ..but No Luck ..Still No Working ..How to Setup
> VirtualHost in Apache ..Have try to Follow which in the Apache Exampler
> files ..But after add the VirtyalHost ..Apache can't start anymore ..maybe
> the problem is ..My Document Root is in E:.
> Can any one Tell me how and where need to do the changing ..Thanks.
>
> NameVirtualHost 192.168.1.101:80
> NameVirtualHost 192.168.1.101:8080


If you are attempting to access virtual hosts on private and/or dynamic IP
via a public name, that name does not resolve to your LAN IP. So you
likely need to use wildcard NameVirtualHost * and <VirtualHost *:80> or
<VirtualHost *:8080>

Also as I mentioned, see docs for UseCanonicalName, and you might need to
test it from internet instead of LAN if your router does not do loopback.

><VirtualHost 192.168.1.101:80>
> ServerName www.mywebsite.no-ip.com
> DocumentRoot E:/My Website/No-IP.com
></VirtualHost>
>
><VirtualHost 192.168.1.101:8080>
> ServerName www.mywebsite.no-ip.com
> DocumentRoot E:/My Website/No-IP.com
></VirtualHost>