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'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. (startup.sh 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

1 Answer 1

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

You should try with the url http://127.0.0.1:8080/ . 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 :

127.0.0.1 localhost 

is present.

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

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.