Results 1 to 10 of 11
Howdy,
I'm running Apache 1.3 on my SuSE 8.0 machine. Only thing I can seem to get working is the default /usr/local/httpd/htdocs directory. I cannot get the user public_html directories ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-23-2003 #1Just Joined!
- Join Date
- Jun 2003
- Posts
- 5
Apache User Directories (public_html)
Howdy,
I'm running Apache 1.3 on my SuSE 8.0 machine. Only thing I can seem to get working is the default /usr/local/httpd/htdocs directory. I cannot get the user public_html directories to work, nor can I get the cgi-bin/ to work. (PHP and SSI's do work tho. I'm learning PHP now
)
Permissions are set. Do I need to add the users to a group of some sort?
From the httpd.conf:
so, HTTPD_SEC_PUBLIC_HTML is set to yes, and this is the /etc/httpd/suse_public_html.conf:Code:# # UserDir: The name of the directory which is appended onto a user's home # directory if a ~user request is received. # Note: # The next three lines are commented out here. These directives and the access # control section have been put into /etc/httpd/suse_public_html.conf. # If the variable HTTPD_SEC_PUBLIC_HTML in /etc/sysconfig/apache # is set to "yes" (default), SuSEconfig will include that file via # /etc/httpd/suse_include.conf. # Also note that for the /home/*/public_html directories to be browsable the # executable flag must be set on the /home/* directories.
Not sure what to do. Any help would be appreciated!Code:<Ifmodule mod_userdir.c> UserDir public_html </Ifmodule> <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options indexes includesNoExec execCGI <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> Allow from all </Directory>
Oh yeah, the user_dir mod is set up to run
- 06-23-2003 #2Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Do you get a 403 or 404 error?
- 06-24-2003 #3Just Joined!
- Join Date
- Jun 2003
- Posts
- 5
page display
Well, I used to be able to view the user directories locally on the server...but after messing with it so much I get "Page Not Found" on any of my computers.
- 06-24-2003 #4Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
See if you get something in your error log.
- 06-24-2003 #5Linux User
- Join Date
- May 2003
- Location
- CA
- Posts
- 370
Yes, post the error log and have you done a
ScriptAlias to your cgi-bin directory? and check the permission on the cgi
files as well, make them executable.
- 06-24-2003 #6Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
Yo´ll find the logs under /var/log/httpd/
RegardsRegards
Andutt
- 06-24-2003 #7Just Joined!
- Join Date
- Jun 2003
- Posts
- 5
Here's some log stuff for the cgi-bin/
(that's my ip)Code:[Fri Jun 20 09:38:44 2003] [error] [client 24.166.41.248] client denied by server configuration: /usr/local/httpd/cgi-bin/count/count [Fri Jun 20 09:38:44 2003] [error] [client 24.166.41.248] client denied by server configuration: /usr/local/httpd/cgi-bin/count/count [Fri Jun 20 09:38:44 2003] [error] [client 24.166.41.248] client denied by server configuration: /usr/local/httpd/cgi-bin/count/count [Fri Jun 20 09:39:00 2003] [error] [client 24.166.41.248] client denied by server configuration: /usr/local/httpd/cgi-bin/count/count [Fri Jun 20 09:39:01 2003] [error] [client 24.166.41.248] client denied by server configuration: /usr/local/httpd/cgi-bin/count/count [Fri Jun 20 09:39:03 2003] [error] [client 24.166.41.248] client denied by server configuration: /usr/local/httpd/cgi-bin/count/count [Fri Jun 20 09:39:03 2003] [error] [client 24.166.41.248] client denied by server configuration: /usr/local/httpd/cgi-bin/count/count
I guess something is messed up in httpd for the cgi. (Permissions are set as they should be.)
Quite a bit of this stuff too
and this:Code:[Sat Jun 21 00:44:16 2003] [error] [client 24.166.15.239] File does not exist: /usr/local/httpd/htdocs/default.ida [Sat Jun 21 00:53:29 2003] [error] [client 24.166.15.239] File does not exist: /usr/local/httpd/htdocs/default.ida
actually....there's a lot of the windows paths in the log....Code:[Sat Jun 21 10:51:45 2003] [error] [client 24.156.47.186] File does not exist: /usr/local/httpd/htdocs/scripts/root.exe [Sat Jun 21 10:51:54 2003] [error] [client 24.156.47.186] File does not exist: /usr/local/httpd/htdocs/MSADC/root.exe [Sat Jun 21 10:52:01 2003] [error] [client 24.156.47.186] File does not exist: /usr/local/httpd/htdocs/c/winnt/system32/cmd.exe [Sat Jun 21 10:52:07 2003] [error] [client 24.156.47.186] File does not exist: /usr/local/httpd/htdocs/d/winnt/system32/cmd.exe [Sat Jun 21 10:52:14 2003] [error] [client 24.156.47.186] File does not exist: /usr/local/httpd/htdocs/scripts/..%5c../winnt/system32/cmd.exe [Sat Jun 21 10:52:24 2003] [error] [client 24.156.47.186] File does not exist: /usr/local/httpd/htdocs/_vti_bin/..%5c../..%5c../..%5c../winnt/system32/cmd.exe
But I don't see anything in the log about user directories not existing.
- 07-04-2003 #8Just Joined!
- Join Date
- Jun 2003
- Posts
- 5
http.conf
Could someone post their/example configuration for the public_html? Maybe there's one little thing messed up with mine.
Maybe even the entire http.conf I could use as a template?
- 07-04-2003 #9Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
The only relevant stuff for that in my apache config looks like this:
Code:# # UserDir: The name of the directory which is appended onto a user's home # directory if a ~user request is received. # <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. # <Directory /home/*/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>
- 07-04-2003 #10Just Joined!
- Join Date
- Jun 2003
- Posts
- 5
ok, I'm a moron, the user dir will work if there's a / at the end of the user name, SOB!! hahahahaha
~user/


Reply With Quote
