1
W1ZeR
Apache probs - Can't see local site over network
  • 2004/9/10 16:39

  • W1ZeR

  • Just popping in

  • Posts: 21

  • Since: 2004/8/20


hi

I have recently set up a local server with apache/mysql/php/xoops/etc

I can see the site locally throughhttp://localhost but on any other machine on the network usinghttp://ip.of.the.machine , I get 'The Connection was refused when attempting to contact localhost'

The XP firewall of the XP Server machine is up but has an exception for HTTP Apache.

Any ideas people?

2
W1ZeR
Re: Apache probs - Can't see local site over network
  • 2004/9/11 14:44

  • W1ZeR

  • Just popping in

  • Posts: 21

  • Since: 2004/8/20


anyone ?

3
DonXoop
Re: Apache probs - Can't see local site over network

Quick fix is to change the URL in mainfile.php from 'localhost' to the actual IP. Real fix is in DNS/Hosts but the IP will work for now.

It is happening from a remote machine because once mainfile.php is read the links try to find the files on 'localhost' which as the name implies is the local machine and not the remote server....

4
Mithrandir
Re: Apache probs - Can't see local site over network

Also, check if
http://ip_to_machine/ works, even ifhttp://ip_to_machine does not (WITH ending slash instead of without)

I'm sure there is a config setting somewhere in the apache or PHP ini files, but I haven't found it.

5
W1ZeR
Re: Apache probs - Can't see local site over network
  • 2004/9/12 10:11

  • W1ZeR

  • Just popping in

  • Posts: 21

  • Since: 2004/8/20


thanks guys, putting the ip in the mainfile.php worked a treat!


Login

Who's Online

244 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 244


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits