Log in

View Full Version : Wamserver 2 issue



dodoecchi
01-30-2010, 10:41 PM
Hi all,
I have a problem with my webserver :
I installed wampserver 2 on my win xp sp3 home server, and when I try to reach the pages from another computer, all links point to "localhost"

(like : <link rel="stylesheet" href="http://localhost/lillou/wp-content/themes/default/style.css" type="text/css" media="screen" /> )

of course, my pages aren't working at all...

I don't understand where it comes from
thanks in advance

Dorian

Nile
01-30-2010, 11:52 PM
This is because localhost can only be accessed on your computer - your computer acts as a host (I think). If you want to be able to access it from every computer you'd need to pass the localhost on to port 80 (or whatever host your internet connection uses).

dodoecchi
01-31-2010, 12:02 AM
and how do I do that?
It's not a step written in any server setup tutorial.... so I thought it was automatic

dodoecchi
01-31-2010, 02:35 PM
I'm really puzzled.... I installed ubuntu server edition on my home server, installed lampp server.... and the problem remains the same (expect instead of localhost I have the ip of the local network). So the problem doesn't come from windows

I read about DMZ... but enabling it didn't change anything

EDIT :

alright, the issue came from a bad wordpress configuration (site url)
then, to reach the site from local network, add a line in hosts file
that's it