|
|
|
|
||||||
| comp.info.servers.win Web servers for MS Windows and NT. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
I have running a website before when I use Apache 2.0.52 + NO-IP.com(Dynamic Update Client) + Linksys Router + Port 80 + Document Root E:/ + WinXP Home Currently I use Apache 2.0.54 + NO-IP.com (Dynamic Update Client) Redirect port 8080 + D-Link DSL-500T (Can't use port 80 because it has default using for modem web access,Vertual Server port 8080 + DMZ already set for the server PC) + Port 8080 + Document Root E:/ After install Apache > I can surf the website... index.htm by using http://127.0.0.1:8080 and http://192.168.1.101:8080 in sever PC + http://192.168.1.101:8080 in Network PC . But when I use http://www.mywebsite.com it will give me Error .. The page cannot be displayed !! When I use IP address http://200.100.300.999 it will Forword me back to the D-Link Router web access main page . Hope some one can me about this Problem ..Thanks. |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
On Mon, 22 Aug 2005 20:24:28 +0800, Jerry Ching <jerryching@hotmail.com> wrote:
> > Currently I use Apache 2.0.54 + NO-IP.com (Dynamic Update Client) > Redirect port 8080 + D-Link DSL-500T (Can't use port 80 because it has > default using for modem web access,Vertual Server port 8080 + DMZ > already set for the server PC) + Port 8080 + Document Root E:/ > After install Apache > I can surf the website... index.htm by using > http://127.0.0.1:8080 and http://192.168.1.101:8080 in sever PC + > http://192.168.1.101:8080 in Network PC . But when I use > http://www.mywebsite.com it will give me Error .. The page cannot be > displayed !! When I use IP address http://200.100.300.999 it will > Forword me back to the D-Link Router web access main page . > Hope some one can me about this Problem ..Thanks. DNS knows nothing about ports. You forgot to include the non-standard port in the URL. Have you tried http://www.mywebsite.com:8080/ or http://your_public_IP:8080/ Note that this might not work from same LAN as server if your router does not do loopback (LAN2LAN via WAN IP). So you may need to test it from a shell account outside of your LAN (or PC isolated from your LAN on dialup). If that still does not work see apache docs for UseCanonicalName (perhaps off would ). |
|
|
|
#3 (permalink) |
|
Messages: n/a
Hébergeur: |
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 <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> "David Efflandt" <efflandt@xnet.com> wrote in message news:slrndglrlv.jqd.efflandt@typhoon.xnet.com... > On Mon, 22 Aug 2005 20:24:28 +0800, Jerry Ching <jerryching@hotmail.com> > wrote: >> >> Currently I use Apache 2.0.54 + NO-IP.com (Dynamic Update Client) >> Redirect port 8080 + D-Link DSL-500T (Can't use port 80 because it has >> default using for modem web access,Vertual Server port 8080 + DMZ >> already set for the server PC) + Port 8080 + Document Root E:/ >> After install Apache > I can surf the website... index.htm by using >> http://127.0.0.1:8080 and http://192.168.1.101:8080 in sever PC + >> http://192.168.1.101:8080 in Network PC . But when I use >> http://www.mywebsite.com it will give me Error .. The page cannot be >> displayed !! When I use IP address http://200.100.300.999 it will >> Forword me back to the D-Link Router web access main page . >> Hope some one can me about this Problem ..Thanks. > > DNS knows nothing about ports. You forgot to include the non-standard > port in the URL. Have you tried http://www.mywebsite.com:8080/ or > http://your_public_IP:8080/ > > Note that this might not work from same LAN as server if your router does > not do loopback (LAN2LAN via WAN IP). So you may need to test it from a > shell account outside of your LAN (or PC isolated from your LAN on > dialup). If that still does not work see apache docs for > UseCanonicalName (perhaps off would ). |
|
|
|
#5 (permalink) |
|
Messages: n/a
Hébergeur: |
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> |
|
|
|
#6 (permalink) |
|
Messages: n/a
Hébergeur: |
Hi, Now I can Running the Website www.mywebsite.dyndns.org:8080 in Public
Address . But If in www.mywebsite.no-ip.com:8080 Still NOT work in Public Address (page not found) !! Even my Apache httpd still set my webserver name set to www.mywebsite.no-ip.com:8080 Can I Running 2 Difference Address www.dyndns.org + www.no-ip.com website by Apache ... Which in 1 same Document Root E:/ Can anyone Teach me how to do that ... Thanks a lot. "David Efflandt" <efflandt@xnet.com> wrote in message news:slrndgq97r.brq.efflandt@typhoon.xnet.com... > 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> |
|
![]() |
| Outils de la discussion | |
|
|