LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   default web dir for user (https://www.linuxquestions.org/questions/linux-newbie-8/default-web-dir-for-user-191404/)

varala_kanth 06-09-2004 03:58 AM

default web dir for user
 
hello freinds,

iam root user to the system

i added a user "a"

what will be default web dir for the user "a:

with regards
rama kanth

Demonbane 06-09-2004 04:05 AM

If "mod_userdir" is enabled, it should be in ~/pub_html by default(so for user "a" its /home/a/pub_html), and it can be accessed with the url "http://yourserver/~a" .

varala_kanth 06-09-2004 04:09 AM

what is mod_usedir?
 
as iam new bie

how to know mod_usedir is enabled or not

if not enabled how to enable it and

what is that basically

Demonbane 06-09-2004 04:59 AM

Quote:


how to know mod_usedir is enabled or not

if not enabled how to enable it and


put something like this in your apache config file(remove it after you're done with this):
Code:

<Location /server-info>
        SetHandler server-info
        Order allow,deny
        Allow from all
</Location>

restart apache, take a look at http://localhost/server-info and see if mod_userdir is there, if its not this is what you can add to the config file to enable it:
Code:

LoadModule userdir_module                modules/mod_userdir.so
<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>

Quote:


what is that basically


its just an Apache module that provides user specific directories which can be accessed by using http://example.com/~user/


All times are GMT -5. The time now is 07:19 PM.