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 Link to comment https://forums.phpfreaks.com/topic/32629-apache-files-on-a-partition/ 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? Link to comment https://forums.phpfreaks.com/topic/32629-apache-files-on-a-partition/#findComment-155524 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.