Nochmal Apache...sorry!

Stefan Gläßer Stefan.Glaesser at gmx.de
Die Mai 16 12:51:51 CEST 2000


hi,

ich habe immer noch nen problem mit dem apache! ich habe jetzt nen user
php angelegt
und unter diesem nen public_html verzeichnis angelegt! jetzt müßte
dieses verzeichnis
doch eigentlich via http://host/~php/index.html erreichbar sein! ich
bekomme aber ständig
die meldung "You don't have permission to access /~php/index.html on
this server."!
ich poste mal meine http.conf! vielleicht wißt ihr ja rat!

----------------------------------------------------------------------
##
## httpd.conf -- Apache HTTP server configuration file
##

### Section 1: Global Environment
ServerType standalone
ServerRoot "/usr/local/httpd"

LockFile /var/lock/subsys/httpd/httpd.accept.lock
PidFile /var/run/httpd.pid
ScoreBoardFile /var/log/httpd/apache_runtime_status

Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 1
MaxSpareServers 1
StartServers 1
MaxClients 150
MaxRequestsPerChild 0

<IfDefine PHP>
LoadModule php3_module /usr/lib/apache/libphp3.so
</IfDefine>
<IfDefine PHP4>
LoadModule php4_module /usr/lib/apache/libphp4.so
</IfDefine>
<IfDefine PERL>
LoadModule perl_module /usr/lib/apache/libperl.so
</IfDefine>
<IfDefine DAV>
LoadModule dav_module  /usr/lib/apache/libdav.so
</IfDefine>
<IfDefine MODULES>
# LoadModule allowdev_module    /usr/lib/apache/mod_allowdev.so
LoadModule mmap_static_module /usr/lib/apache/mod_mmap_static.so
LoadModule vhost_alias_module /usr/lib/apache/mod_vhost_alias.so
LoadModule env_module         /usr/lib/apache/mod_env.so
LoadModule define_module      /usr/lib/apache/mod_define.so
LoadModule config_log_module  /usr/lib/apache/mod_log_config.so
LoadModule agent_log_module   /usr/lib/apache/mod_log_agent.so
LoadModule referer_log_module /usr/lib/apache/mod_log_referer.so
LoadModule mime_magic_module  /usr/lib/apache/mod_mime_magic.so
LoadModule mime_module        /usr/lib/apache/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/mod_negotiation.so
LoadModule status_module      /usr/lib/apache/mod_status.so
LoadModule info_module        /usr/lib/apache/mod_info.so
LoadModule includes_module    /usr/lib/apache/mod_include.so
LoadModule autoindex_module   /usr/lib/apache/mod_autoindex.so
LoadModule dir_module         /usr/lib/apache/mod_dir.so
LoadModule cgi_module         /usr/lib/apache/mod_cgi.so
LoadModule asis_module        /usr/lib/apache/mod_asis.so
LoadModule imap_module        /usr/lib/apache/mod_imap.so
LoadModule action_module      /usr/lib/apache/mod_actions.so
LoadModule speling_module     /usr/lib/apache/mod_speling.so
LoadModule userdir_module     /usr/lib/apache/mod_userdir.so
LoadModule alias_module       /usr/lib/apache/mod_alias.so
LoadModule rewrite_module     /usr/lib/apache/mod_rewrite.so
LoadModule access_module      /usr/lib/apache/mod_access.so
LoadModule auth_module        /usr/lib/apache/mod_auth.so
LoadModule anon_auth_module   /usr/lib/apache/mod_auth_anon.so
LoadModule dbm_auth_module    /usr/lib/apache/mod_auth_dbm.so
LoadModule db_auth_module     /usr/lib/apache/mod_auth_db.so
LoadModule digest_module      /usr/lib/apache/mod_digest.so
LoadModule proxy_module       /usr/lib/apache/libproxy.so
LoadModule cern_meta_module   /usr/lib/apache/mod_cern_meta.so
LoadModule expires_module     /usr/lib/apache/mod_expires.so
LoadModule headers_module     /usr/lib/apache/mod_headers.so
LoadModule usertrack_module   /usr/lib/apache/mod_usertrack.so
LoadModule example_module     /usr/lib/apache/mod_example.so
LoadModule unique_id_module   /usr/lib/apache/mod_unique_id.so
LoadModule setenvif_module    /usr/lib/apache/mod_setenvif.so
<IfDefine SSL>
LoadModule ssl_module         /usr/lib/apache/libssl.so
</IfDefine>

ClearModuleList
AddModule mod_mmap_static.c
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_define.c
AddModule mod_log_config.c
AddModule mod_log_agent.c
AddModule mod_log_referer.c
AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_auth_anon.c
AddModule mod_auth_dbm.c
AddModule mod_auth_db.c
AddModule mod_digest.c
AddModule mod_proxy.c
AddModule mod_cern_meta.c
AddModule mod_expires.c
AddModule mod_headers.c
AddModule mod_usertrack.c
AddModule mod_example.c
AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
LoadModule cookie_auth_module /usr/lib/apache/mod_auth_cookie.so
LoadModule cookie_file_access_module
/usr/lib/apache/mod_auth_cookie_file.so
LoadModule external_auth_module /usr/lib/apache/mod_auth_external.so
LoadModule inst_auth_module   /usr/lib/apache/mod_auth_inst.so
LoadModule auth_system_module /usr/lib/apache/mod_auth_system.so
LoadModule eaccess_module     /usr/lib/apache/mod_eaccess.so
LoadModule bandwidth_module   /usr/lib/apache/mod_bandwidth.so
LoadModule cache_module       /usr/lib/apache/libcache.so
LoadModule urlcount_module    /usr/lib/apache/mod_urlcount.so
LoadModule disallow_id_module /usr/lib/apache/mod_disallow_id.so
LoadModule lock_module        /usr/lib/apache/mod_lock.so
LoadModule peephole_module    /usr/lib/apache/mod_peephole.so
LoadModule put_module         /usr/lib/apache/mod_put.so
LoadModule qs2ssi_module      /usr/lib/apache/mod_qs2ssi.so
LoadModule session_module     /usr/lib/apache/mod_session.so
LoadModule fastcgi_module     /usr/lib/apache/mod_fastcgi.so
LoadModule cvs_module         /usr/lib/apache/mod_cvs.so
LoadModule roaming_module     /usr/lib/apache/mod_roaming.so
LoadModule w3c_ip_forwarding_module /usr/lib/apache/mod_ip_forwarding.so
LoadModule macro_module       /usr/lib/apache/mod_macro.so
</IfDefine>


LoadModule mmap_static_module /usr/lib/apache/mod_mmap_static.so
LoadModule vhost_alias_module /usr/lib/apache/mod_vhost_alias.so
LoadModule env_module         /usr/lib/apache/mod_env.so
LoadModule define_module      /usr/lib/apache/mod_define.so
LoadModule config_log_module  /usr/lib/apache/mod_log_config.so
LoadModule agent_log_module   /usr/lib/apache/mod_log_agent.so
LoadModule referer_log_module /usr/lib/apache/mod_log_referer.so
LoadModule mime_magic_module  /usr/lib/apache/mod_mime_magic.so
LoadModule mime_module        /usr/lib/apache/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/mod_negotiation.so
LoadModule status_module      /usr/lib/apache/mod_status.so
LoadModule info_module        /usr/lib/apache/mod_info.so
LoadModule includes_module    /usr/lib/apache/mod_include.so
LoadModule autoindex_module   /usr/lib/apache/mod_autoindex.so
LoadModule dir_module         /usr/lib/apache/mod_dir.so
LoadModule cgi_module         /usr/lib/apache/mod_cgi.so
LoadModule asis_module        /usr/lib/apache/mod_asis.so
LoadModule imap_module        /usr/lib/apache/mod_imap.so
LoadModule action_module      /usr/lib/apache/mod_actions.so
LoadModule speling_module     /usr/lib/apache/mod_speling.so
LoadModule userdir_module     /usr/lib/apache/mod_userdir.so
LoadModule alias_module       /usr/lib/apache/mod_alias.so
LoadModule rewrite_module     /usr/lib/apache/mod_rewrite.so
LoadModule access_module      /usr/lib/apache/mod_access.so
LoadModule auth_module        /usr/lib/apache/mod_auth.so
LoadModule anon_auth_module   /usr/lib/apache/mod_auth_anon.so
LoadModule dbm_auth_module    /usr/lib/apache/mod_auth_dbm.so
LoadModule db_auth_module     /usr/lib/apache/mod_auth_db.so
LoadModule digest_module      /usr/lib/apache/mod_digest.so
LoadModule proxy_module       /usr/lib/apache/libproxy.so
LoadModule cern_meta_module   /usr/lib/apache/mod_cern_meta.so
LoadModule expires_module     /usr/lib/apache/mod_expires.so
LoadModule headers_module     /usr/lib/apache/mod_headers.so
LoadModule usertrack_module   /usr/lib/apache/mod_usertrack.so
LoadModule example_module     /usr/lib/apache/mod_example.so
LoadModule unique_id_module   /usr/lib/apache/mod_unique_id.so
LoadModule setenvif_module    /usr/lib/apache/mod_setenvif.so
<IfDefine SSL>
LoadModule ssl_module         /usr/lib/apache/libssl.so
</IfDefine>

ClearModuleList
AddModule mod_mmap_static.c
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_define.c
AddModule mod_log_config.c
AddModule mod_log_agent.c
AddModule mod_log_referer.c
AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_auth_anon.c
AddModule mod_auth_dbm.c
AddModule mod_auth_db.c
AddModule mod_digest.c
AddModule mod_proxy.c
AddModule mod_cern_meta.c
AddModule mod_expires.c
AddModule mod_headers.c
AddModule mod_usertrack.c
AddModule mod_example.c
AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>

<IfDefine PHP>
AddModule  mod_php3.c
</IfDefine>
<IfDefine PHP4>
AddModule mod_php4.c
</IfDefine>
<IfDefine PERL>
AddModule  mod_perl.c
</IfDefine>
<IfDefine DAV>
AddModule mod_dav.c
</IfDefine>
<IfDefine MODULES>
AddModule mod_auth_cookie.c
AddModule mod_auth_cookie_file.c
AddModule mod_auth_external.c
AddModule mod_auth_inst.c
AddModule mod_auth_system.c
AddModule mod_eaccess.c
AddModule mod_bandwidth.c
AddModule mod_cache.c
AddModule mod_urlcount.c
AddModule mod_disallow_id.c
AddModule mod_lock.c
AddModule mod_peephole.c
AddModule mod_put.c
AddModule mod_qs2ssi.c
AddModule mod_session.c
AddModule mod_fastcgi.c
AddModule mod_cvs.c
AddModule mod_roaming.c
AddModule mod_ip_forwarding.c
AddModule mod_macro.c
</IfDefine>

ExtendedStatus On
<IfDefine DAV>
DavLockDB /var/lock/DAVLock
</IfDefine>


### Section 2: 'Main' server configuration
Port 80

<IfDefine SSL>
	Listen 80
	Listen 443
</IfDefine>

User wwwrun
Group nogroup

ServerAdmin Stefan.Glaesser at gmx.de
DocumentRoot "/usr/local/httpd/htdocs"

<Directory />
    AuthUserFile  /etc/httpd/passwd
    AuthGroupFile /etc/httpd/group
    Options -FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/usr/local/httpd/htdocs">
    Options Indexes -FollowSymLinks +Includes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
	<IfDefine DAV>
	DAV On
	</IfDefine>
</Directory>

<IfModule mod_userdir.c>
    UserDir public_html 
</IfModule>

<Directory /home/*/public_html/>
    Options Indexes -FollowSymLinks +Includes MultiViews
    Allow from all
</Directory>

<IfModule mod_dir.c>
    DirectoryIndex index.html
</IfModule>

AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

UseCanonicalName On
<IfModule mod_mime.c>
    TypesConfig /etc/httpd/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
    MIMEMagicFile /etc/httpd/magic
</IfModule>
HostnameLookups Off
ErrorLog /var/log/httpd/error_log
LogLevel warn
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
CustomLog /var/log/httpd/access_log common

ServerSignature On
Alias /howto/       /usr/doc/howto/
Alias /hilfe/       /usr/doc/susehilf/
Alias /doc/         /usr/doc/
Alias /cgi-bin-sdb/ /usr/local/httpd/cgi-bin/
Alias /sdb/         /usr/doc/sdb/
Alias /manual/      /usr/doc/packages/apache/manual/
Alias /htdig/       /opt/www/htdocs/htdig/
Alias /opt/kde/share/doc/HTML/     /opt/kde/share/doc/HTML/ 
Alias /opt/gnome/share/gnome/help/ /opt/gnome/share/gnome/help/
<Directory /usr/doc>
    Options FollowSymLinks Indexes +Includes
    AllowOverride None
</Directory>
<Directory /opt/kde/share/doc/HTML/>
    Options FollowSymLinks Indexes
    AllowOverride None
</Directory>
<Directory /opt/gnome/share/gnome/help/>
    Options FollowSymLinks Indexes
    AllowOverride None
</Directory>
<IfModule mod_alias.c>

    Alias /icons/ "/usr/local/httpd/icons/"
    <Directory "/usr/local/httpd/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    ScriptAlias /cgi-bin/ "/usr/local/httpd/cgi-bin/"
    <Directory "/usr/local/httpd/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>

    ScriptAlias /php/ "/usr/local/httpd/php/"
    <Directory "/usr/local/httpd/php/">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>

<Directory /usr/lib/sdb/cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script
</Directory>

<IfDefine PERL>
Perlrequire /usr/include/apache/modules/perl/startup.perl
</IfDefine>

<Location /cgi-bin>
	AllowOverride None
	Options +ExecCGI -Includes
	SetHandler cgi-script

<IfDefine PERL>
	AddHandler  perl-script .pl
	PerlHandler Apache::Registry
	PerlSendHeader On
</IfDefine>

</Location>



<IfModule mod_autoindex.c>
    IndexOptions FancyIndexing
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) 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
    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
    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
    AddDescription "GZIP compressed document" .gz
    AddDescription "tar archive" .tar
    AddDescription "GZIP compressed tar archive" .tgz
    ReadmeName README
    HeaderName HEADER
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>

<IfModule mod_mime.c>
    AddEncoding x-compress Z
    AddEncoding x-gzip gz tgz
    AddLanguage da .dk
    AddLanguage nl .nl
    AddLanguage en .en
    AddLanguage et .ee
    AddLanguage fr .fr
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage it .it
    AddLanguage ja .ja
    AddCharset ISO-2022-JP .jis
    AddLanguage pl .po
    AddCharset ISO-8859-2 .iso-pl
    AddLanguage pt .pt
    AddLanguage pt-br .pt-br
    AddLanguage ltz .lu
    AddLanguage ca .ca
    AddLanguage es .es
    AddLanguage sv .se
    AddLanguage cz .cz
    <IfModule mod_negotiation.c>
        LanguagePriority en da nl et fr de el it ja pl pt pt-br ltz ca
es sv
    </IfModule>
    <IfDefine PHP>
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3 .php
    AddType application/x-httpd-php3-source .phps
    AddType application/x-httpd-php3 .phtml
    </IfDefine>
    <IfDefine PHP4>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    </IfDefine>


    AddType application/x-tar .tgz
    AddHandler cgi-script .cgi
    AddType text/html .shtml
    AddHandler server-parsed .shtml
    AddHandler server-parsed .html
</IfModule>

<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
</IfModule>
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from localhost
</Location>
<Location /server-info>
    SetHandler server-info
    Order deny,allow
    Deny from all
    Allow from localhost
</Location>

<IfDefine PERL>
<Location /perl-status>
    SetHandler perl-script
    PerlHandler Apache::Status
    order deny,allow
    deny from all
    allow from localhost
</Location>
</IfDefine>


### Section 3: Virtual Hosts

<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl
</IfDefine>

<IfModule mod_ssl.c>
SSLPassPhraseDialog  builtin
SSLSessionCache         dbm:/var/log/ssl_scache
SSLSessionCacheTimeout  300
SSLMutex  file:/var/log/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog      /var/log/httpd/ssl_engine_log
SSLLogLevel info

</IfModule>

<IfDefine SSL>
<VirtualHost _default_:443>
DocumentRoot "/usr/local/httpd/htdocs"
ServerName besson.suse.de
ServerAdmin root at besson.suse.de
ErrorLog /var/log/httpd/error_log
TransferLog /var/log/httpd/access_log
SSLEngine off
<Files ~ "\.(cgi|shtml)$">
    SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/httpd/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
CustomLog /var/log/httpd/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>                                  

</IfDefine>

<IfDefine JSERV>
Include /etc/httpd/jserv/jserv.conf
</IfDefine>
--------------------------------------------------------------------


sorry für soviel trash!

thx for help
gruß stefan
-- 

--The only problem with troubleshooting is that the trouble shoots
back--
          .--.                     
         |o_o |             RealLife: Stefan Gläßer
         |:_/ |                 Nick: MOORE
        //   \ \                 UIN: 1479
       (|     | )               TALK: Moore at B111-1.fem.tu-ilmenau.de
      /'\_   _/`\ 
      \___)=(___/

++++++++++++++++ SNAFU - Situation Normal, All Fucked Up 
++++++++++++++++