Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 UserDir problem
Google
Post new topic Reply to topic
Author Message
Can I
 
 


Joined: 26 Feb 2006
Posts: 1

PostPosted: Sun Feb 26, 2006 11:26 am Reply with quoteBack to top

Hi,

I'm trying to change the user's home directory

Code:
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.  Be especially careful to use
# proper, forward slashes here. 
#
<IfModule mod_userdir.c>
    UserDir "public_html"
</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
# You must correct the path for the root to match your system's configured
# user directory location, e.g. "C:/Documents and Settings/*/public_html"
# or whichever, as appropriate.
#
<Directory "C:/Documents and Settings/Administrator/Pulpit/php/*/public_html">
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>


I get 404 when I request http://localhost/~username. Why is that? There is a folder C:/Documents and Settings/Administrator/Pulpit/php/username/public_html on file system with index.php inside it.
View user's profileSend private message
Vlad Alexa Mancini
lead developer
lead developer


Joined: 07 Jul 2003
Posts: 1539

PostPosted: Sun Feb 26, 2006 6:44 pm Reply with quoteBack to top

default in apache2triad is

Quote:
<Directory "C:/Documents and Settings/*/public_html">
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>


C:/Documents and Settings/username/public_html can be accesed with http://localhost/~username

seeing how you messed it up should now answer your question by itself
View user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT