[CentOS] Apache not liking directories outside of /var/www

Kenneth Porter

shiva at sewingwitch.com
Sat Aug 1 17:07:50 UTC 2009


--On Saturday, August 01, 2009 10:30 AM -0700 Mark Hedges 
<hedges at scriptdolphin.com> wrote:

> I.e. Apache process is accessing an sqlite file that is
> outside the docroot.  This is how it should be.

Don't use /var/www as your docroot. Use a subdirectory. Then you can put 
other files under /var/www that are not under the docroot.

Aside: Avoid editing httpd.conf if you can help it. A lot of customization 
can be accomplished by dropping a custom .conf file in /etc/httpd/conf.d. 
This makes upgrades a lot easier, in case the stock httpd.conf changes.





More information about the CentOS mailing list