Jump to content

apache files on a partition


the_oliver

Recommended Posts

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: header
UseCanonicalName Off

# this log format can be split per-virtual-host based on the first field
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
CustomLog logs/access_log vcommon

# include the server name in the filenames used to satisfy requests
VirtualDocumentRoot /var/www/html/%0/docs
VirtualScriptAlias  /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 /www
Partition is fine however when i change the code to this:


[code]# include the server name in the filenames used to satisfy requests
VirtualDocumentRoot /www/%0/docs
VirtualScriptAlias  /www/%0/cgi-bin[/code]

there is a problem! The web browser always shows:


[quote]Forbidden
You 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.