Solved

Cannot access sites running on localhost using IP Address

Posted on 2006-06-27
3
323 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
OS X Mavericks File/Folder Permission Issue 5 265
OSX - Users cannot login 3 70
How to sync data across two macs 4 87
Safari HomePage - El Capitan 1 3
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 …
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now