Portál AbcLinuxu, 8. května 2025 08:02
< IfModule mod_userdir.c > UserDir public_html UserDir enabled * UserDir disabled root www < /IfModule >Toto je chyba, kterou vidim po pokusu o pristup k souboru v userdir.
Forbidden You don't have permission to access /~radek/tut33_headers.php on this server. Additionally, a 403 Forbidden error was encountered while \\ trying to use an ErrorDocument to handle the request. Apache/2.0.50 Server at tux.avalonnet Port 80Distro Gentoo Predem diky za pomoc a preji pekny den
<Directory /home/*/public_html> Order allow, deny Allow from all </Directory>máš?
### ### These settings are pretty flexible, and allow for Frontpage and XSSI ### < Directory /home/*/public_html > AllowOverride All Options MultiViews Indexes Includes FollowSymLinks < IfModule mod_access.c > Order allow,deny Allow from all < /IfModule > < /Directory > < Directory /home/*/public_html/cgi-bin > Options +ExecCGI -Includes -Indexes SetHandler cgi-script < /Directory > < IfModule mod_perl.c > < Directory /home/*/public_html/perl > SetHandler perl-script PerlResponseHandler ModPerl::PerlRun Options -Indexes ExecCGI < IfDefine MODPERL2 > PerlOptions +ParseHeaders < /IfDefine > < IfDefine !MODPERL2 > PerlSendHeader On < /IfDefine > < /Directory > < /IfModule >Ale divim se, ze mi nechodi ani ty chybova hlaseni, protoze ty mam nastavene (aspon si to myslim
< Directory "/home/www/error" > AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all LanguagePriority cs en es de fr sv ForceLanguagePriority Prefer Fallback < /Directory > ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var ErrorDocument 410 /error/HTTP_GONE.html.var ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.varUz jsem z toho jelen
Module Name: mod_userdir.c Content handlers: none Configuration Phase Participation: Create Server Config Request Phase Participation: Translate Path Module Directives: UserDir - the public subdirectory in users' home directories, or 'disabled', or 'disabled username username...', or 'enabled username username...' Current Configuration: UserDir public_html UserDir enabled * UserDir disabled root www
apache:x:81:81:apache:/home/httpd:/bin/false(ted jsem si tam vsimnul toho /home/httpd ... to tam sakra vubec nemam
[Sat Aug 14 13:56:05 2004] [error] [client 127.0.0.1] (13)Permission denied: access to /~radek/tut33_headers.php denied
Module Name: mod_access.c Content handlers: none Configuration Phase Participation: Create Directory Config Request Phase Participation: Check Access Module Directives: order - 'allow,deny', 'deny,allow', or 'mutual-failure' allow - 'from' followed by hostnames or IP-address wildcards deny - 'from' followed by hostnames or IP-address wildcards Current Configuration: ... < Directory / > Order deny,allow Deny from all < /Directory > ... < Directory "/home/www/error" > Order allow,deny Allow from all < /Directory > ... < Directory /home/www/htdocs > Order allow,deny Allow from all < /Directory > ... < Directory /home/*/public_html > Order allow,deny Allow from all < /Directory > ...Ach jo, vsechno musim oddelit mezerou...XML a toto forum se moc rady nemaji
<Directory /home/*/public_html> AllowOverride All Options MultiViews -Indexes Includes FollowSymLinks <IfModule mod_access.c> Order allow,deny Allow from all </IfModule> </Directory>
chcon -R -t httpd_sys_content_t public_html
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.