Super User is a question and answer site for computer enthusiasts and power users. 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 am trying to access web sites on my Mac.

If I use then I get a web page with the following error on it: Forbidden You don't have permission to access /index.html on this server.

If I replace the IP with 'localhost' all is good.
The URI also works fine.

My OS firewall is disabled. There are no .htaccess files in place and my httpd.conf is pretty straightforward. I have been looking at document root permissions and ownership (apache runs as _www/_www and execute permissions are set on the document root and my index.html file in the root) but still no joy.

Here is /etc/hosts content without comment lines:        localhost  broadcasthost
::1              localhost
fe80::1%lo0      localhost
share|improve this question

migrated from Aug 28 '12 at 6:31

This question came from our site for system and network administrators.

If you have already checked file permissions then you are probably running into one of these directives:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all

That is from the stock OS X Lion httpd.conf. It looks like you'll need to add an allow directive somewhere if you want to hit /index.html. I assume somewhere else in your config is an allow that lets it work if the hostname matches some virtualhost. You'd have to post your config to help debug further.

share|improve this answer

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.