Solved

Cannot access sites running on localhost using IP Address

Posted on 2006-06-27
3
327 Views
Last Modified: 2010-03-17
Hello,

I have Tomcat running on my Mac which is used to serve the web pages. I can access the files (which are in folder myfiles) if I type in http://localhost/myfiles and the correct jsp files are shown to the user. The internal IP address of the mac is 10.10.10.4, which has been manually configured. When I type in 10.10.10.4/myfiles in the browser, I get a 404 not found page. However, the strange thing is, if I just type 10.10.10.4 in the browser, I get the Apache test page. I am not sure why I can access the test page but not the folder if I type the IP address. I would appreciate any help here.
0
Comment
Question by:pr12
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
ParadiseITS earned 150 total points
ID: 16995829
Sounds like you have a permission problem on the Myfiles directory.  You will need to either enable a username/password login to the web-directory or open it to anonymous users through apache.  This is bypassed when accessing it as localhost because you, obviously, have access to it.
0
 

Author Comment

by:pr12
ID: 17004520
Thanks for your reply. How do I open the web-directory to anonymous users?
0
 

Author Comment

by:pr12
ID: 17047708
I have it working. Thanks for your help.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SUMMARY Enterprise backup in a heterogeneous network is a subject full of complications and restrictions. Issues such as filename & path structure, attributes and extended metadata always tend to complicate the subject to the extent where either …
Worried about if Apple can protect your documents, photos, and everything else that gets stored in iCloud? Read on to find out what Apple really uses to make things secure.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question