View previous topic :: View next topic |
Author |
Message |
RUDIII n00b
Joined: 31 May 2004 Posts: 63 Location: Germany - Hamburg
|
Posted: Thu Jun 09, 2005 3:31 pm Post subject: Apache: 403 Error (Forbidden) trotz Standardconfigs |
|
|
Hallo,
ich bekomme andauernd ein 403 Forbidden-Fehler
Quote: |
Forbidden
You don't have permission to access /info.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
|
die info.php gehört root und hat die Rechte 755. Sie liegt in dem Verzeichnis /var/www/localhost/htdocs
Einen VirtualHost habe ich nicht angelegt - auf anderen Maschinen funktioniert diese Standart-Gentoo-Config auch so.
meine /etc/apache2/conf/apache2.conf
Code: |
### /etc/apache2/conf/apache2.conf
### $Id: apache2.conf,v 1.1 2004/03/22 21:17:57 stuart Exp $
###
### Main Configuration Section
### You really shouldn't change these settings unless you're a guru
###
ServerRoot /usr/lib/apache2
#ServerName localhost
#LockFile /etc/apache2/apache2.lock
PidFile /var/run/apache2.pid
ErrorLog logs/error_log
LogLevel warn
DocumentRoot /var/www/localhost/htdocs
LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule mime_module modules/mod_mime.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule cgid_module modules/mod_cgid.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
###
### New Modules for 2.0 (some are experimental)
###
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule echo_module modules/mod_echo.so
LoadModule charset_lite_module modules/mod_charset_lite.so
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule case_filter_module modules/mod_case_filter.so
LoadModule case_filter_in_module modules/mod_case_filter_in.so
LoadModule deflate_module modules/mod_deflate.so
#LoadModule optional_hook_export_module modules/mod_optional_hook_export.so
#LoadModule optional_hook_import_module modules/mod_optional_hook_import.so
#LoadModule optional_fn_import_module modules/mod_optional_fn_import.so
#LoadModule optional_fn_export_module modules/mod_optional_fn_export.so
#LoadModule bucketeer_module modules/mod_bucketeer.so
LoadModule logio_module modules/mod_logio.so
Include conf/modules.d/*.conf
Include conf/commonapache2.conf
Listen 80
<IfModule mod_log_config.c>
CustomLog logs/access_log combined env=!VLOG
</IfModule>
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>
|
Und meine commonapache2.conf:
Code: |
### /etc/apache2/conf/commonapache2.conf
### $Id: commonapache2.conf,v 1.5 2004/07/08 16:27:12 zul Exp $
###
### Common server configuration.
###
User apache
Group apache
ServerAdmin root@localhost
<Directory />
Options -All -Multiviews
AllowOverride None
<IfModule mod_access.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html index.html.var index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm
</IfModule>
AccessFileName .htaccess
<IfModule mod_access.c>
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
</IfModule>
UseCanonicalName On
<IfModule mod_mime.c>
TypesConfig conf/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
EnableMMAP on
<IfModule mod_log_config.c>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "%v %h %l %u %t \"%r\" %>s %b %T" script
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" VLOG=%{VLOG}e" vhost
<IfModule mod_logio.c>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
</IfModule>
ServerTokens Full
ServerSignature On
<IfModule mod_alias.c>
Alias /icons/ /var/www/localhost/icons/
Alias /doc /usr/share/doc
ScriptAlias /cgi-bin/ /var/www/localhost/cgi-bin/
ScriptAlias /protected-cgi-bin/ /var/www/localhost/protected-cgi-bin/
ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/public_html/cgi-bin/$2
<IfModule mod_perl.c>
Alias /perl/ /var/www/localhost/perl/
Alias /cgi-perl/ /var/www/localhost/perl/
</IfModule>
</IfModule>
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing VersionSort NameWidth=*
AddIconByEncoding (CMP,/icons/compressed.png) x-compress x-gzip
AddIconByType (TXT,/icons/text.png) text/*
AddIconByType (IMG,/icons/image2.png) image/*
AddIconByType (SND,/icons/sound2.png) audio/*
AddIconByType (VID,/icons/movie.png) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip .bz2
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py .php .php3
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* RCS CVS *,v *,t
</IfModule>
<IfModule mod_mime.c>
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage ca .ca
AddLanguage cz .cz
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage es .es
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage kr .kr
AddLanguage ltz .ltz
AddLanguage ltz .lu
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt-br .pt-br
AddLanguage pt .pt
AddLanguage ru .ru
AddLanguage sv .se
AddLanguage tw .tw
AddLanguage zh-tw .tw
AddDefaultCharset ISO-8859-1
<IfModule mod_negotiation.c>
LanguagePriority en fr de es it da nl et el ja kr no pl pt pt-br ru ltz ca sv tw
</IfModule>
<IfModule mod_negotiation.c>
ForceLanguagePriority Prefer Fallback
</IfModule>
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis
AddType application/x-tar .tgz
AddType image/x-icon .ico
AddHandler cgi-script .cgi
AddHandler type-map var
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddHandler imap-file map
</IfModule>
<Location /manual>
Options Multiviews
ErrorDocument 404 "The document you requested has not been installed on your system."
</Location>
<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
BrowserMatch "^WebDAVFS" redirect-carefully
</IfModule>
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
<IfModule mod_access.c>
Order deny,allow
Deny from all
allow from 127.0.0.1
#Allow from .your_domain.com
</IfModule>
</Location>
</IfModule>
<IfModule mod_info.c>
<Location /server-info>
SetHandler server-info
<IfModule mod_access.c>
Order deny,allow
Deny from all
allow from 127.0.0.1
#Allow from .your_domain.com
</IfModule>
</Location>
</IfModule>
<IfModule mod_perl.c>
<Location /perl-status>
SetHandler perl-script
<IfDefine MODPERL2>
PerlResponseHandler Apache::Status
</IfDefine>
<IfDefine !MODPERL2>
PerlResponseHandler ModPerl::Status
</IfDefine>
<IfModule mod_access.c>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</IfModule>
</Location>
</IfModule>
<IfModule mod_include.c>
# XBitHack on
</IfModule>
<IfModule mod_deflate.c>
<Directory "/var/www/localhost/htdocs/manual">
AddOutputFilterByType DEFLATE text/html
</Directory>
</IfModule>
<Directory /var/www/localhost/htdocs>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
<Directory /var/www/localhost/perl>
AllowOverride All
Options -Indexes FollowSymLinks MultiViews ExecCGI
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
<IfModule mod_cgid.c>
# Scriptsock /cgisock
</IfModule>
<Directory /var/www/localhost/cgi-bin>
AllowOverride All
Options ExecCGI
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
<Directory /var/www/localhost/protected-cgi-bin>
AllowOverride All
Options ExecCGI
<IfModule mod_access.c>
Order deny,allow
Deny from all
Allow from 127.0.0.1
#allow from .your_domain.com
</IfModule>
</Directory>
<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>
<Directory /var/www/localhost/icons>
Options -Indexes MultiViews
AllowOverride None
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
<Directory /usr/share/doc>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
</IfModule>
Options Indexes FollowSymLinks
<IfModule mod_access.c>
Order deny,allow
Deny from all
Allow from 127.0.0.1
#allow from .your_domain.com
</IfModule>
</Directory>
<Location /index.shtml>
Options +Includes
</Location>
<IfModule mod_perl.c>
PerlModule Apache2::ModPerl::Registry
#set Apache::Registry Mode for /perl Alias
# To set subdirectories to use perl set the following
# and comment the orignial:
# <Location ~ "^/perl/.*\.pl$">
<Location "^/perl/*.pl>
SetHandler perl-script
<IfDefine MODPERL2>
PerlResponseHandler Apache2::ModPerl::Registry
</IfDefine>
<IfDefine !MODPERL2>
PerlResponseHandler ModPerl::Registry
</IfDefine>
Options -Indexes ExecCGI
PerlSendHeader On
</Location>
#set Apache::PerlRun Mode for /cgi-perl Alias
<Location /cgi-perl/*.pl>
SetHandler perl-script
PerlResponseHandler ModPerl::PerlRun
Options -Indexes ExecCGI
PerlSendHeader On
</Location>
</IfModule>
<IfModule mod_alias.c>
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/localhost/htdocs/manual/$1"
</IfModule>
<Directory "/var/www/localhost/htdocs/manual">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
<Files *.html>
SetHandler type-map
</Files>
SetEnvIf Request_URI ^/manual/de/ prefer-language=de
SetEnvIf Request_URI ^/manual/en/ prefer-language=en
SetEnvIf Request_URI ^/manual/fr/ prefer-language=fr
SetEnvIf Request_URI ^/manual/ja/ prefer-language=ja
SetEnvIf Request_URI ^/manual/ko/ prefer-language=ko
SetEnvIf Request_URI ^/manual/ru/ prefer-language=ru
RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>
|
Das sind die Standartconfigs... Wodran kann das liegen? Ich versteh es nicht
Last edited by RUDIII on Fri Jun 10, 2005 8:39 pm; edited 1 time in total |
|
Back to top |
|
|
powersack n00b
Joined: 26 Mar 2005 Posts: 33
|
Posted: Thu Jun 09, 2005 5:15 pm Post subject: |
|
|
AFAIK sollten php, pl und andere Scripts in cgi-bin liegen.
Jakob
PS: Sorry, geht gerade nicht länger. |
|
Back to top |
|
|
RUDIII n00b
Joined: 31 May 2004 Posts: 63 Location: Germany - Hamburg
|
Posted: Thu Jun 09, 2005 7:41 pm Post subject: |
|
|
Ja, aber funktionieren sollte es doch trotzdem.
Außerdem läuft die index.html mit gleichen Rechten auch nicht. |
|
Back to top |
|
|
the-pugnacity Apprentice
Joined: 20 Dec 2004 Posts: 236 Location: Germany//Berlin
|
Posted: Fri Jun 10, 2005 3:32 am Post subject: |
|
|
was sagen die log dateien? _________________ Gentoo 2.6.12-gentoo // Pentium4 2800 || Aopen XC Cube || TwinMOS 1024 MB PC 3200 || 250GB Hitachi 7k250 || Aopen Aeolus FX5900XT || MX500 |
|
Back to top |
|
|
RUDIII n00b
Joined: 31 May 2004 Posts: 63 Location: Germany - Hamburg
|
Posted: Fri Jun 10, 2005 4:31 am Post subject: |
|
|
Code: |
[Thu Jun 09 15:26:05 2005] [notice] Apache/2.0.54 (Gentoo/Linux) mod_ssl/2.0.54 OpenSSL/0.9.7e PHP/4.3.11 configured -- resuming normal operations
[Thu Jun 09 15:26:10 2005] [error] [client ich] (13)Permission denied: access to / denied
[Thu Jun 09 15:26:13 2005] [error] [client ich] (13)Permission denied: access to / denied
[Thu Jun 09 15:26:14 2005] [error] [client ich] (13)Permission denied: access to / denied
[Thu Jun 09 15:26:18 2005] [error] [client ich] (13)Permission denied: access to /info.php denied
|
Für mich auch nicht wirklich aussagekräftig. |
|
Back to top |
|
|
AntonWert Apprentice
Joined: 06 Mar 2005 Posts: 177
|
Posted: Fri Jun 10, 2005 5:11 am Post subject: |
|
|
Nur zur Sicherheit, aber wem gehört Code: | /var/www/localhost/htdocs |
Hat da der Apache sicher Leserechte?
Gleiches ebenfalls für deine "index.php" prüfen, und ggf. korrigieren. |
|
Back to top |
|
|
RUDIII n00b
Joined: 31 May 2004 Posts: 63 Location: Germany - Hamburg
|
Posted: Fri Jun 10, 2005 5:20 am Post subject: |
|
|
Hallo,
htdocs:
drwxr-xr-x 4 root root 1424 Jun 8 22:12 htdocs
Gehört also root.
Die Standartapacheseite:
-rwxr-xr-x 1 root root 48 Jun 8 21:36 index.html
Ich sitz da schon länger dran und seh den Fehler wahrscheinlich nicht...
Ich würde euch ja sogar eine Kleinigkeit geben wenn dieser bekloppte Fehler endlich verschwindet und ich weitermachen kann |
|
Back to top |
|
|
Mankale Tux's lil' helper
Joined: 20 Jan 2004 Posts: 76
|
Posted: Fri Jun 10, 2005 6:56 pm Post subject: |
|
|
Code: |
<Directory />
Options -All -Multiviews
AllowOverride None
<IfModule mod_access.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>
|
änder das mal in
Code: |
<Directory />
Options -All -Multiviews
AllowOverride None
<IfModule mod_access.c>
Order deny,allow
Allow from all
</IfModule>
</Directory>
|
|
|
Back to top |
|
|
RUDIII n00b
Joined: 31 May 2004 Posts: 63 Location: Germany - Hamburg
|
Posted: Fri Jun 10, 2005 7:32 pm Post subject: |
|
|
Quote: | [Fri Jun 10 21:31:57 2005] [error] [client myip] (13)Permission denied: access to / denied
[Fri Jun 10 21:31:57 2005] [error] [client myip] (13)Permission denied: access to /favicon.ico denied
[Fri Jun 10 21:32:02 2005] [error] [client myip] (13)Permission denied: access to /index.html denied
|
Geht leider immer noch nicht. Apache habe ich nach der Änderung einmal gestoppt und wieder gestartet.
Wodran kann das bloß liegen. Der richtige Tipper bekommt 5 EUR... ich bin verzweifelt |
|
Back to top |
|
|
misterjack Veteran
Joined: 03 Oct 2004 Posts: 1657
|
Posted: Fri Jun 10, 2005 8:28 pm Post subject: |
|
|
Nimm die Kommentare raus, das nervt ja _________________ „Meine Meinung steht fest! Bitte verwirren Sie mich nicht mit Tatsachen.“ |
|
Back to top |
|
|
RUDIII n00b
Joined: 31 May 2004 Posts: 63 Location: Germany - Hamburg
|
Posted: Fri Jun 10, 2005 8:40 pm Post subject: |
|
|
misterjack wrote: | Nimm die Kommentare raus, das nervt ja |
gesagt - getan |
|
Back to top |
|
|
RUDIII n00b
Joined: 31 May 2004 Posts: 63 Location: Germany - Hamburg
|
Posted: Sun Jun 12, 2005 2:37 pm Post subject: |
|
|
weiß wirklich keiner weiter?
Langsam bin ich am verzweifeln... |
|
Back to top |
|
|
RUDIII n00b
Joined: 31 May 2004 Posts: 63 Location: Germany - Hamburg
|
Posted: Sun Jun 12, 2005 5:04 pm Post subject: |
|
|
Habe nochmal eine Minimalkonfiguration erstellt.
Was fehlt dort? Wieder der 403 Error.
Quote: | ### /etc/apache2/conf/apache2.conf
### $Id: apache2.conf,v 1.1 2004/03/22 21:17:57 stuart Exp $
###
### Main Configuration Section
### You really shouldn't change these settings unless you're a guru
###
ServerRoot /usr/lib/apache2
ServerName web.ffm01.projectroot.de
#LockFile /etc/apache2/apache2.lock
PidFile /var/run/apache2.pid
ErrorLog logs/error_log
LogLevel warn
DocumentRoot /var/www/localhost/htdocs
LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule mime_module modules/mod_mime.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule cgid_module modules/mod_cgid.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
###
### New Modules for 2.0 (some are experimental)
###
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule echo_module modules/mod_echo.so
LoadModule charset_lite_module modules/mod_charset_lite.so
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule case_filter_module modules/mod_case_filter.so
LoadModule case_filter_in_module modules/mod_case_filter_in.so
LoadModule deflate_module modules/mod_deflate.so
#LoadModule optional_hook_export_module modules/mod_optional_hook_export.so
#LoadModule optional_hook_import_module modules/mod_optional_hook_import.so
#LoadModule optional_fn_import_module modules/mod_optional_fn_import.so
#LoadModule optional_fn_export_module modules/mod_optional_fn_export.so
#LoadModule bucketeer_module modules/mod_bucketeer.so
LoadModule logio_module modules/mod_logio.so
#Include conf/modules.d/*.conf
#Include conf/commonapache2.conf
Listen 80
<IfModule mod_log_config.c>
CustomLog logs/access_log combined env=!VLOG
</IfModule>
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>
User apache
Group apache
ServerAdmin root@localhost
<Directory />
Options -All -Multiviews
AllowOverride None
<IfModule mod_access.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>
<IfModule mod_dir.c>
DirectoryIndex index.html index.html.var index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm
</IfModule>
ServerTokens Full
ServerSignature On
<Directory /var/www/localhost/htdocs>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory> |
|
|
Back to top |
|
|
stalinski Tux's lil' helper
Joined: 14 Jan 2005 Posts: 106 Location: Berlin,Germany
|
Posted: Wed Jun 22, 2005 12:43 pm Post subject: |
|
|
RUDIII wrote: | Hallo,
htdocs:
drwxr-xr-x 4 root root 1424 Jun 8 22:12 htdocs
Gehört also root.
Die Standartapacheseite:
-rwxr-xr-x 1 root root 48 Jun 8 21:36 index.html
Ich sitz da schon länger dran und seh den Fehler wahrscheinlich nicht...
Ich würde euch ja sogar eine Kleinigkeit geben wenn dieser bekloppte Fehler endlich verschwindet und ich weitermachen kann |
Haben auch alle übergeordneten Verzeichniss zumindest executeRechte für den Apache?
Das hat bei mir zu dem gleichen Fehler geführt, weil eines kein execute Recht für den Apache hatte...
Und da hab ich auch erstmal stundenlang gesucht... ,) |
|
Back to top |
|
|
duke n00b
Joined: 27 Nov 2002 Posts: 31
|
Posted: Wed Jun 22, 2005 1:04 pm Post subject: |
|
|
Ich hatte mal das selbe Problem bei einem Upgrade von Apache. Wo der Fehler lag hab ich nicht raus finden können!
Habe dann einfach Apache mit allen Programmen die ihn brauchen ge-unmerge. Dann alle! Überreste in /etc und /var manuell entfernt. Emerge sync laufen lassen und emerge apache. Zum Schluss in der neuen Konfigdatei vom emerge apache den Hostnamen geändert und dann ging es.
Hoffe das hilft dir weiter.
Gruß SL
PS:
Apache läuft zwar, aber modPHP nicht *heul* _________________ Gentoo Hardened running on Dual PIII-S 1266 MHz
1024MB Dual Channel RAM, 36GB SCSI Fujitsu
160GB SATA, Dual Intel Gbit Lan,
no Monitor, no keyboard, no mouse
AND NO MICROSOFT WINDOWS!!! |
|
Back to top |
|
|
Rüpel Guru
Joined: 06 Nov 2002 Posts: 316 Location: Berlin/Germany
|
Posted: Thu Jun 23, 2005 9:57 am Post subject: |
|
|
versuch mal die order-reihenfolge umzudrehen:
Code: | <Directory /var/www/localhost/htdocs>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
<IfModule mod_access.c>
Order deny,allow
Allow from all
</IfModule>
</Directory> |
"deny,allow" heißt: default-mäßig erlaubt
"allow,deny" heißt: default-mäßig gesperrt
ich weiß, mit "Allow from all" sollte das eigentlich egal sein, aber probiers mal trotzdem... _________________ :wq |
|
Back to top |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Thu Jun 23, 2005 7:09 pm Post subject: |
|
|
Evtl. hilft es, wenn Du mit dem Parameter -e den Log Level hochdrehst, vielleicht steht man mehr in den Logfiles, das Dir hilft. _________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
Back to top |
|
|
|