Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working on a web application in JSP and my web container is Apache Tomcat 7.0.2 (Its portable cross-platform version). As I've made extensive use of HTML5-CSS3 and my target browser is Google Chrome, I'm able to run the the Apache server only in Opera web browser, neither of the remaining installed browser run it.

Here's the steps I have followed to start the server in my Windows 7 machine.

-Placing the 'apache-tomcat-7.0.2' directory on my root partition (i.e. C: Drive)

-Execute 'startup.bat' from 'bin' directory in it. ( if on Linux/Unix).

-Then, a Console window opens that shows log during the setup of server (separately from Command Prompt), and I need to keep that console running in order to keep the Apache server running, so I minimize it.

-Then, I open 'http://localhost:8080/' in various web browsers, and I could see Apache Server Homepage with same address only in Opera Web Browser (11.01), neither of other browsers installed can open it (Chrome 9, Firefox 4 Beta 10 or IE8).

-I also tried other port numbers, but none of them worked.

What can I do to make Apache run in every browser installed in my computer?

I have my computer dual boot with Windows 7 and Ubuntu 10.10, and in Ubuntu, every web browser installed can run Apache once I start it, but same is not working in Windows.

share|improve this question

My best guess is that your host file is empty on windows.

You should try with the url . If it works like this then look at your host file (in C:\Windows\system32\drivers\etc\, it could be elsewhere on Windows 7) and check that the line : localhost 

is present.

share|improve this answer
Thanks, but I've got the solution earlier, when I asked the same question on StackOverflow here. – Kushal Mar 30 '11 at 13:09

Your Answer


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.