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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.