Forum Moderators: phranque

Message Too Old, No Replies

Configure visitor access to directories

How?

         

fred2028

2:25 am on Aug 27, 2005 (gmt 0)



I own a Apache 2 server, and I am admin. How can I edit the httpd.conf file so that certain directories, such as /layout/, will not be accessible to outsiders? For example, say that my site was www.fred.ca. How can I made it so that when people access www.fred.ca/layout/, it will display an error 403 message?

jdMorgan

4:12 am on Aug 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



fred2028,

Welcome to WebmasterWorld!

You will need to explicitly define "outsiders" here. You can password-protect the directory or you can prevent access by anyone (including you) via HTTP, or you can define certain IP addresses that are allowed or disallowed access. These are only the most useful options and there are many more. But the implementation varies too widely to post all of the options without knowing the requirements.

Jim