Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to Access Pages from Local Network

Status
Not open for further replies.

lexiskm

Technical User
Dec 19, 2004
12
CA
I am a newbie using Apache 1.3.3 with PHP 4 on MS XP Pro Service Pack 2.

I am able to access all my pages from the PC on wich Apache is running but I cannot access them from any other PC on my local network (through a linksys router).

I have excerpted what I believe to be the pertinent lines from my httpd.conf below:
>>>>> start code >>>>>
ServerType standalone

Listen 80
Listen 8080

BindAddress *

### Section 2: 'Main' server configuration
Port 80
Port 8080

ServerName 192.168.1.100

DocumentRoot "C:/locserv"

<Directory "C:/locserv">

UseCanonicalName On

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot "C:/locserv/barb"
ServerName barb
</VirtualHost>

NameVirtualHost *:8080

<VirtualHost *:8080>
DocumentRoot "C:/locserv/barb"
ServerName barb
</VirtualHost>
>>>>> end code >>>>>

At the browser on my server, I type " and get served the correct page.

At any other PC on my network, I type " or " or " etc. and always get the "The page cannot be displayed" in internet explorer.

I had initially installed Apache 2 and everything was fine. When I rolled back to Apache 1.3.3 I ran into this problem.

From what I've seen in the FAQ's, this should be a no brainer, but I just can't get any response from other computers on the network.

I've tried many variations of the above to no avail. I am hoping someone out there will see my error and save my computer from certain defenestration.

Thanks in advance.
Lexiskm
 
Is the XP (or other) firewall blocking traffic on port 80?
 
Since I had this working in Apache 2, I believe it is not a firewall setup issue.

I am using McAfee Personal Firewall Plus, V6 and I believe I have done everyting necessary to allow trafic to apache on port 80 from all computers on the LAN.

To eliminate the firewall as a suspect, I performed my tests with the firewall disabled.

How would I be able to verify if my problem is due to a firewall issue (perhaps XP)?

Thanks.

 
I didn't even look at your configuration because you said it works fine from the hosting pc. If it works fine from the hosting pc, there most be something (aka firewall) between the other pc's and the hosting pc. The XP firewall can allow traffic on port 80 by going to: Network Connections, right-click on your Local Area Connection, Properties, Advanced tab, Settings button, Exceptions tab, Add TCP Port 80.
 
smah, you are a person of great beauty. That was it. Thanks.

Now that I am able to access my server, however, I am only able to get a single page; i.e whereas at the server I may enter " " etc. and get served the correct page, when I go to a network PC and enter " etc. I get a "The page cannot be found" error. I only get served a page when I enter "
Thanks very much for your help.
 
Never mind.

Lesson learned... when one gets an error message, one should check the error log. Once I did, the error was obvioius and had nothing to do with the directories setup.

Lexis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top