Apache: Restricting permissions to access from local machine only

I am trying to setup a wiki that is only accessible from my own mac, not via the LAN or WAN, but ran into permissions issues. In order to not let others access the wiki, I cannot set everyone:Read only. But when I set everyone:No access, I cannot access the folder in Webserver>Documents>wiki at all. Even when I give the folder access permissions for my own account, I cannot access it with everyone set to no access. How can that be? Could anyone help me figure out how to set permissions to allow access for my user account only?

MBP 2.4, Mac OS X (10.6.2)

Posted on Nov 22, 2009 12:59 PM

Reply
5 replies

Nov 23, 2009 10:34 AM in response to current

The simplest method is to just add an appropriate Allow directive to your site's configuration file.:

<Directory "/">
Order Deny,Allow
Allow from 127.0.0.1
Deny from All
</Directory>


This tells Apache to only allow requests from Localhost (127.0.0.1) and deny anyone else.

This should be added to your site's config in /etc/apache2/sites/ (or /etc/httpd/sites/ if running Apache 1.3)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Apache: Restricting permissions to access from local machine only

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.