the_oliver Posted January 3, 2007 Share Posted January 3, 2007 Hello.I have virtual hosts set up with the following on an apache server, running CentOS 4.4.[code]# get the server name from the Host: headerUseCanonicalName Off# this log format can be split per-virtual-host based on the first fieldLogFormat "%V %h %l %u %t \"%r\" %s %b" vcommonCustomLog logs/access_log vcommon# include the server name in the filenames used to satisfy requestsVirtualDocumentRoot /var/www/html/%0/docsVirtualScriptAlias /var/www/html/%0/cgi-bin[/code]This works well, however i want the DocumentRoot to be on a diffrent partition, with the mount point /wwwPartition is fine however when i change the code to this:[code]# include the server name in the filenames used to satisfy requestsVirtualDocumentRoot /www/%0/docsVirtualScriptAlias /www/%0/cgi-bin[/code]there is a problem! The web browser always shows:[quote]ForbiddenYou don't have permission to access / on this server.Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.[/quote]Can anyone tell me where im going wrong???? - Thanks Quote Link to comment Share on other sites More sharing options...
effigy Posted January 8, 2007 Share Posted January 8, 2007 Does Apache's user and group have permission to access /www? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.