UserDir not working at all? (Newbie Post)
Posted by: Rallan (---.as43234.net)
Date: May 01, 2011 09:19PM

Hi. I am a total newbie., so please be patient! I need to set up a development environment to work with some existing websites. I have set up the MySQL DB and VirtualHost for the directory, and everything tested OK. If I test for access to the DB I get an OK. If I type "http ://sub1" I get an index of the site files & directories. So far, so good.

However I now need to set up UserDir so that the content for each virtually hosted site comes from a sub directory called "public_html". I've followed the directions as best I can, and have added the "public_html" directory into which I've put a simple "index.html" file, but nothing changes. When I type "http ://sub1" the browser still just indexes all the site files & directories as before. If I then click on the "public_html" folder the "index.html" file displays as it should.

In httpd.conf I have un-commented the line "Include conf/extra/httpd-userdir.conf". I have enabled the "userdir_module" in WAMP so that the line "LoadModule userdir_module modules/mod_userdir.so" is un-commented too.

My "httpd-userdir.conf" reads:

________________________________________________________________

# Settings for user home directories
#
# Required module: mod_userdir

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
#

UserDir public_html

#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory "C:/wamp/www/*/public_html/">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

#<Directory "C:/wamp/www/*/public_html/cgi-bin/">
# Options ExecCGI
# SetHandler cgi-script
#</Directory>
________________________________________________________________


WAMP comes up green. Help? Can anyone tell me where I am going wrong?



Edited 3 time(s). Last edit at 05/01/2011 09:23PM by Rallan.

Options: ReplyQuote
Re: UserDir not working at all? (Newbie Post)
Posted by: Rallan (---.as43234.net)
Date: May 01, 2011 09:30PM

EDIT

I have just realized that there are errors being logged. The error is:

[Sun May 01 20:28:49 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/httpd-2.2-x64, referer: [sub1]
[Sun May 01 20:28:49 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/httpd-2.2-x64, referer: [sub1]

Help?

Options: ReplyQuote
Re: UserDir not working at all? (Newbie Post)
Posted by: Rallan (---.as43234.net)
Date: May 02, 2011 05:10PM

Can anyone help me with this? I am going nuts!

Options: ReplyQuote
Re: UserDir not working at all? (Newbie Post)
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: May 02, 2011 06:01PM

i probably can using teamviewer

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.