logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Serving web site without domain name
Author
oldcoot



Joined: 20 Feb 2006
Posts: 8

PostPosted: Mon 20 Feb '06 19:41    Post subject: Serving web site without domain name Reply with quote

Lets say that I have a windows 2000 Pro machine and I have the IP #
192.168.0.1 (not real address ) from my DSL that is setup in my
machine's TCP/IP properties.
I have no domain name.
I installed Apache HTTP server
version 2.0.55.0 using "localhost" as the server's name.
I setup the directives in the http.conf
from Listen 80 to Listen 192.168.0.1:80 and
from ServerName localhost:80 to ServerName 192.168.0.1:80
The DSL router's firewall is set to allow web server. My machine's
firewall is shut down.
I edited an index page into the htdocs folder.
I type in my browser's URL box "http://192.168.0.1/ and get a
"The connection has timed out" warning.

What settings have I missed?

oldcoot
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3049
Location: Hilversum, NL, EU

PostPosted: Mon 20 Feb '06 20:19    Post subject: Reply with quote

When you set LISTEN 80 (without IP), is it working then ?

Steffen
Back to top
oldcoot



Joined: 20 Feb 2006
Posts: 8

PostPosted: Mon 20 Feb '06 21:13    Post subject: Reply with quote

Set Listen to 80 (default). I still can not bring up site
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3049
Location: Hilversum, NL, EU

PostPosted: Mon 20 Feb '06 21:17    Post subject: Reply with quote

Also http://localhost/ not working ?

Steffen
Back to top
oldcoot



Joined: 20 Feb 2006
Posts: 8

PostPosted: Mon 20 Feb '06 22:29    Post subject: Reply with quote

Accessing with the machine the server is in, http://localhost/ will get me to the apache's "Seeing this instead of the website you expected?" page, but http://127.0.0.1/ will get me to my site homepage.

oldcoot
Back to top
Redebo



Joined: 13 Feb 2006
Posts: 4

PostPosted: Tue 21 Feb '06 4:05    Post subject: Reply with quote

Who is your ISP?

Have you checked to see if they block port 80?
Back to top
oldcoot



Joined: 20 Feb 2006
Posts: 8

PostPosted: Tue 21 Feb '06 6:48    Post subject: Reply with quote

My ISP is SBC yahoo. I do not think it is with the ISP because I have another machine using OS X with Apache 1.3 and static IP and I can access the site on it.

Could it be some setting in the Windows "host" file since I can access my site on the Windows machine using 127.0.0.1?

oldcoot
Back to top
pnllan



Joined: 05 Dec 2005
Posts: 221

PostPosted: Tue 21 Feb '06 8:41    Post subject: Reply with quote

First, I run in a similiar situation. I use:

ServerName localhost:80

rather than

ServerName 192.168.0.1:80

Actually, I see a couple of things that might be problematic. First, your Mac is running Apache 1.3, and most likely using Port 80: How does the router know how to distinguish between the two different Apache setups on two different PC's (Port Forwarding)? It seems to me that you would still have to use a different Port for each instance of Apache (for external access).

Next, it sounds like you have a DNS/routing issue rather than a Apache setup issue (the 'time out' in the error message - you probably receive quick too). So....Yes...if you are using a HOST file then make sure you define your 'dotted decimal' address to localhost. If you have a DNS Server running, then consult your DNS Server Info for proper configuration.

Also, make sure your DocumentRoot is pointing where you want it.
.
Back to top


Reply to topic   Topic: Serving web site without domain name View previous topic :: View next topic
Post new topic   Forum Index -> Apache