I set up Apache to run through YAST2, and anything located in my srv/www (I think) will publish. However, any of the user public_html directories do not publish. When I try to acccess them, I get the following error: Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, please contact the webmaster. and I have mod_userdir enabled. What else do I need to do?
John Meyer wrote:
I set up Apache to run through YAST2, and anything located in my srv/www (I think) will publish. However, any of the user public_html directories do not publish. When I try to acccess them, I get the following error:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
and I have mod_userdir enabled. What else do I need to do?
Do you have an index.html in that directory? If not, you may need to enable Indexes in your apache2 config files. Buddy Coffey Advanced Electromagnetics
Buddy Coffey wrote:
John Meyer wrote:
I set up Apache to run through YAST2, and anything located in my srv/www (I think) will publish. However, any of the user public_html directories do not publish. When I try to acccess them, I get the following error:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
and I have mod_userdir enabled. What else do I need to do?
Do you have an index.html in that directory? If not, you may need to enable Indexes in your apache2 config files.
Buddy Coffey Advanced Electromagnetics
index.html and an index.php It works in the svr/www directory, but not in my home user directory, which would kind of suck if I had to use su everytime I wanted to update.
Buddy Coffey wrote:
John Meyer wrote:
I set up Apache to run through YAST2, and anything located in my srv/www (I think) will publish. However, any of the user public_html directories do not publish. When I try to acccess them, I get the following error:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
and I have mod_userdir enabled. What else do I need to do?
Do you have an index.html in that directory? If not, you may need to enable Indexes in your apache2 config files.
Not that. For better info, as root: tail /var/log/apache2/error_log
John Meyer:
I set up Apache to run through YAST2, and anything located in my srv/www (I think) will publish. However, any of the user public_html directories do not publish. When I try to acccess them, I get the following error:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
and I have mod_userdir enabled. What else do I need to do?
set the variable in YAST2 HTTPD_SEC_PUBLIC_HTML = yes
Edward Krack wrote:
John Meyer:
I set up Apache to run through YAST2, and anything located in my srv/www (I think) will publish. However, any of the user public_html directories do not publish. When I try to acccess them, I get the following error:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
and I have mod_userdir enabled. What else do I need to do?
set the variable in YAST2 HTTPD_SEC_PUBLIC_HTML = yes
Okay, where do I track down this variable? I'm looking at /etc/sysconfig Editor right now.
John Meyer:
Edward Krack wrote:
John Meyer:
I set up Apache to run through YAST2, and anything located in my srv/www (I think) will publish. However, any of the user public_html directories do not publish. When I try to acccess them, I get the following error:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
and I have mod_userdir enabled. What else do I need to do?
set the variable in YAST2 HTTPD_SEC_PUBLIC_HTML = yes
Okay, where do I track down this variable? I'm looking at /etc/sysconfig Editor right now.
According to *MY* /usr/share/doc/packages/suselinux-adminguide_en/html The Apache Web Server Configuration Manual Configuration UserDir With the help of the module mod_userdir and the directive UserDir, you can specify a directory in the home directory of the user in which the user can publish his files by way of Apache. This can be configured in SuSEconfig by means of the variable HTTPD_SEC_PUBLIC_HTML. To enable the publishing of files, this variable must be set to yes. This results in the following entry in the file /etc/httpd/suse_public_html.conf (which is interpreted by /etc/httpd/httpd.conf). <IfModule mod_userdir.c> UserDir public_html </IfModule> You may have to get your hands dirty and edit by hand. /etc/sysconfig/apache Just my 2 cents.
Edward Krack wrote:
John Meyer:
Edward Krack wrote:
John Meyer:
I set up Apache to run through YAST2, and anything located in my srv/www (I think) will publish. However, any of the user public_html directories do not publish. When I try to acccess them, I get the following error:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
and I have mod_userdir enabled. What else do I need to do?
set the variable in YAST2 HTTPD_SEC_PUBLIC_HTML = yes
Okay, where do I track down this variable? I'm looking at /etc/sysconfig Editor right now.
According to *MY* /usr/share/doc/packages/suselinux-adminguide_en/html
The Apache Web Server Configuration Manual Configuration UserDir
With the help of the module mod_userdir and the directive UserDir, you can specify a directory in the home directory of the user in which the user can publish his files by way of Apache. This can be configured in SuSEconfig by means of the variable HTTPD_SEC_PUBLIC_HTML. To enable the publishing of files, this variable must be set to yes. This results in the following entry in the file /etc/httpd/suse_public_html.conf (which is interpreted by /etc/httpd/httpd.conf).
<IfModule mod_userdir.c> UserDir public_html </IfModule>
You may have to get your hands dirty and edit by hand. /etc/sysconfig/apache
Just my 2 cents
Well, I got it working, sort of, with this command in httpd.conf Alias /johnmeyer /home/webpublisher/public_html <Directory /home/webpublisher/public_html> Order allow,deny Allow from all </Directory> Since I'm running this as a test server, I guess this will do for starters.
John Meyer:
Well, I got it working, sort of, with this command in httpd.conf
Alias /johnmeyer /home/webpublisher/public_html <Directory /home/webpublisher/public_html>
Order allow,deny Allow from all
</Directory>
Since I'm running this as a test server, I guess this will do for starters.
I think you mean, Alias /webpublisher/ /path/to/publishweb/folder Which creates a external folder "symbolic link" to the web server. A bit more secure. >>FOR SECURITY REASONS<< Because Apache will serve any file it can access to anyone caring enough to look, we'll block the entire filesystem. Then allow acess to the DocumentRoot directory.. <Directory /> Order Deny,Allow Deny from all </Directory> <Directory /home/johnmeyer/public_html> Order Allow,Deny Allow from all </Directory> Good Luck to ya' John! Krack
On Fri, Dec 09, 2005 at 04:02:46PM -0700, John Meyer wrote:
I set up Apache to run through YAST2, and anything located in my srv/www (I think) will publish. However, any of the user public_html directories do not publish. When I try to acccess them, I get the following error:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
and I have mod_userdir enabled. What else do I need to do?
There is a bug in yast2, that it disables the mod_userdir configuration. See https://bugzilla.novell.com/show_bug.cgi?id=128226 You need to add the configuration again: https://bugzilla.novell.com/attachment.cgi?id=53980&action=view UserDir public_html Include /etc/apache2/mod_userdir.conf (in /etc/apache2/default-server.conf) Peter -- When in danger, or in doubt, run in circles, scream and shout. -- Robert A. Heinlein
participants (5)
-
Buddy Coffey
-
Edward Krack
-
John Meyer
-
John Summerfield
-
poeml@cmdline.net