peiner Posted April 6, 2010 Report Share Posted April 6, 2010 Apache odpala się bez problemów, zawartość głównego katalogu /var/root/html jest wyświetlana przy adesie http://localhost. To fragment mojego httpd.conf: # # UserDir: The name of the directory that is appended onto a user's home # directory if a ~user request is received. # # The path to the end user account 'public_html' directory must be # accessible to the webserver userid. This usually means that ~userid # must have permissions of 711, ~userid/public_html must have permissions # of 755, and documents contained therein must be world-readable. # Otherwise, the client will only receive a "403 Forbidden" message. # # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden # <IfModule mod_userdir.c> # # UserDir is disabled by default since it can confirm the presence # of a username on the system (depending on home directory # permissions). # UserDir enabled lech # # To enable requests to /~user/ to serve the user's public_html # directory, remove the "UserDir disabled" line above, and uncomment # the following line instead: # 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 ExecCGI SetHandler cgi-script Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Options FollowSymLinks AllowOverride None Allow from all </Directory> Jednak zawartości katalogu /home/user/public_html nie czyta : You don't have permission to access /~user/ on this server. Jak włączyć katalogi użytkowników na Fedorze 12 ? public_html nadałem prawa 755 Link to comment Share on other sites More sharing options...
ecik__ Posted April 6, 2010 Report Share Posted April 6, 2010 Upewnij się, że katalogi domowe użytkowników mają atrybut x dla serwera. Link to comment Share on other sites More sharing options...
peiner Posted April 6, 2010 Author Report Share Posted April 6, 2010 Upewnij się, że katalogi domowe użytkowników mają atrybut x dla serwera. drwxr-xr-x. 92 user user 12288 04-06 19:55 user Chodzi o te uprawnienia ? Link to comment Share on other sites More sharing options...
ecik__ Posted April 7, 2010 Report Share Posted April 7, 2010 Tak, o te. Link to comment Share on other sites More sharing options...
peiner Posted April 7, 2010 Author Report Share Posted April 7, 2010 no wszystkie grupy mają uprawnienia +x... co zatem może być nie tak ? ok.mam , tu jest tutorial : http://www.astahost.com/info.php/Configuri...rdir_t3659.html temat można zamknąć. Link to comment Share on other sites More sharing options...
dither Posted April 8, 2010 Report Share Posted April 8, 2010 Najprawdopodobniej problem selinuksa. setsebool -P httpd_enable_homedirs true chcon -R -t httpd_sys_content_t ~<username>/public_html Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now