[opensuse] userdir on apache not working
Sorry for the repeated message - forgot to fill in subject DOH!
I'm using opensuse 10.2 on a 64bit system.
I'm trying to use mod_userdir in apache. This provides a public_html folder
in a users home directory to serve web pages.
I have enabled the module in yast. I have configured the mod_userdir.conf
file to allow userdir mod for all users, except root.
I have a publically readable public_html folder with an index.html within it-
that is publicly readable.
I've restarted apache.
When I try to access a user dir file on my system
http://www.mysystem/~user
I get the error:
Object not found!
The requested URL was not found on this server
When I look at the apache error log it indicates apache was trying find the
folder ~user in the document root (/srv/www/htdocs/~user) instead
of /home/user/public_html
It looks like apache isn't using mod_userdir
Is there another configuration setting required to get the userdir mod working
properly?
This is my mod_userdir.conf file:
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
# Note that the name of the user directory ("public_html") cannot
easily be
# changed here, since it is a compile time setting. The apache package
# would have to be rebuilt. You could work around by deleting
# /usr/sbin/suexec, but then all scripts from the directories would be
# executed with the UID of the webserver.
#
# To rebuild apache with another setting you need to change the
# %userdir define in the spec file.
# not every user's directory should be visible:
UserDir disabled root
# to enable UserDir only for a certain set of users, use this instead:
#UserDir disabled
UserDir enabled
# the UserDir directive is actually used inside the virtual hosts, to
# have more control
UserDir public_html
On Thu March 22 2007 12:54, Gordon J. Holtslander wrote:
I'm using opensuse 10.2 on a 64bit system.
I'm trying to use mod_userdir in apache. This provides a public_html folder in a users home directory to serve web pages.
I have enabled the module in yast. I have configured the mod_userdir.conf file to allow userdir mod for all users, except root.
Hi Gordon, There's been a change in this configuration since 10.0. Edit /etc/sysconfig/apache2 and set: APACHE_CONF_INCLUDE_FILES="extra/httpd-userdir.conf" save, run rcapache2 restart hth & regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thanks ! That did the trick - userdir mod is now working :) Gord On March 22, 2007 11:06:07 am Carl Hartung wrote:
On Thu March 22 2007 12:54, Gordon J. Holtslander wrote:
I'm using opensuse 10.2 on a 64bit system.
I'm trying to use mod_userdir in apache. This provides a public_html folder in a users home directory to serve web pages.
I have enabled the module in yast. I have configured the mod_userdir.conf file to allow userdir mod for all users, except root.
Hi Gordon,
There's been a change in this configuration since 10.0.
Edit /etc/sysconfig/apache2 and set:
APACHE_CONF_INCLUDE_FILES="extra/httpd-userdir.conf"
save, run rcapache2 restart
hth & regards,
Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- Gordon J. Holtslander Dept. of Biology gordon.holtslander@usask.ca University of Saskatchewan Tel 306 966-4433 112 Science Place Fax 306 966-4462 Saskatoon SK., CANADA homepage.usask.ca~gjh289 S7N 5E2 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Carl Hartung
-
Gordon J. Holtslander