List Info

Thread: problem with VirtualDocumentRoot config




problem with VirtualDocumentRoot config
user name
2006-03-28 04:26:05
I am trying to use mod_vhost_alias for mass vhosting in
addition to the
present Namebased virtual hosting on my machine.

my mass vhost config is as below...

----------------------------------start---------------------
-------------
<VirtualHost *:80>
    UseCanonicalName off
    ServerAdmin r...members.domain.ac.in
    VirtualDocumentRoot /home/%-5/webroot
    ServerSignature Off
    ErrorLog logs/members-webpage-error_log
    CustomLog logs/members-webpage-access_log common
</VirtualHost>

#other vhosts
.....
....
.....
-----------------------------------end----------------------
--------------------

Wat i wanna do is to serve pages for
"username.members.domain.ac.in"
from /home/username/webroot

This doesnt work. The server returns the following msg

----------------------------------start---------------------
---------------------
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.
----------------------------------------end-----------------
------------------------------

But if i use the config below, it works
"  VirtualDocumentRoot /var/www/html/%-5 "
ie it serves pages from /var/www/html/dir for
"dir.members.domain.ac.in"

Any idea hw i could solve the problem. I want to use the
/home dir.
Can anyone confirm using /home/username dir to serve pages.

Thanks in advance.

Arun


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Apache Chat" group.
To post to this group, send email to Apache-Chatgooglegroups.com
To unsubscribe from this group, send email to
Apache-Chat-unsubscribegooglegroups.com
For more options, visit this group at http://gro
ups.google.com/group/Apache-Chat
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )