Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a web application running on an apache web server on Ubuntu 10.04. The web application can be accessed via a web browser on the server's computer by typing http://localhost/webapp.

I want to make this application available in a networking environment. So I first set a unique IP address for the server and every computer connected to the server could only access the login page of the web application. I get a certain error whenever a user tries to access another page expect the login page. ERROR: The web page cannot be accessed with the address localhost

So I want every page of the web application to be accessible to every computer in the network.

share|improve this question

2 Answers 2

You just have to change the word localhost to the server's IP address (or DNS name if you have one setup), it's that simple. The term localhost is what a single server can, if needed, call just itself, a bit like the term 'me' in your inner monologue.

share|improve this answer
1  
I especially liked your "inner monologue" point. –  nickgrim Mar 15 '11 at 22:00

First, you need to make sure the IP address you are using is correct.

http://your_server_ip/webapp

Then, you need to make sure that the code inside webapp does not refer to the other web pages using localhost or 127.0.0.1.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.