Forum Moderators: phranque

Message Too Old, No Replies

VH question

         

ycliuwz

11:22 am on Apr 23, 2005 (gmt 0)

10+ Year Member



could anyone tell me how i can configure apache to allow per-user web directory in Virtual host.
thanks.

sitz

10:48 pm on Apr 23, 2005 (gmt 0)

10+ Year Member



Assuming you mean something like having a <VirtualHost> for 'www.example.com', and having user directories such as 'http://www.example.com/~user1/' and so on, look in the default httpd.conf for the UserDir directive (documentation for this is at [httpd.apache.org ]). If you mean something else, you'll need to provide examples of exactly what you're trying to do.

ycliuwz

2:55 am on Apr 24, 2005 (gmt 0)

10+ Year Member



yup..
if i've got a <VirtualHost> www.example.com.
and i want to make it Userdir
'http://www.example.com/~user1/'
how do i go abt doing it?

<VirtualHost>
..
..
# <Directory>
# is it something like this?
# </Directory>

</VirtualHost>

could you show me how it is done. thanks

sitz

1:17 pm on Apr 25, 2005 (gmt 0)

10+ Year Member



This functionality is, as I mentioned above, controlled by the UserDir directive. The documentation (link is above) contains the configuration details for that directive. Note that:

Context: server config, virtual host

Means that the directive is only valid is the main server config area and within a <VirtualHost> container; it's /not/ valid in <Directory> or <Location> containers.