Xampp 1.5.1 & 403 error

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Xampp 1.5.1 & 403 error

Postby micha80 » 02. February 2006 20:52

hallo,

ich habe folgendes problem.

nach einer neuen windows und xampp installation bekomme ich einen 403 fehler beim zugriff auf einen "virtualhost". die xampp oberfläche funktioniert einwandfrei aber der eingerichtete virtualhost kann einfach nicht auf seinen documentroot zugreifen. der virtualhost soll auf ein komplett anderes laufwerk zgreifen (D:) und in diesem soll eine index.html angesprochen werden. ich habe schon 2 tage im netz und auch in diesem forum gesucht aber leider ohne erfolg. ich zeige hier einmal den inhalt der mir relevantesten dateien:

------------------------------
HTTPD.CONF
------------------------------
Code: Select all
ThreadsPerChild 250
MaxRequestsPerChild  0
ServerRoot "C:/Programme/xampp/apache"
Listen 80

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
#LoadModule autoindex_module modules/mod_autoindex.so # don't load because of mod_autoindex_color.so
#LoadModule bucketeer_module modules/mod_bucketeer.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule dumpio_module modules/mod_dumpio.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule version_module modules/mod_version.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule ssl_module modules/mod_ssl.so

LoadModule autoindex_color_module modules/mod_autoindex_color.so
#LoadModule mysql_auth_module modules/mod_auth_mysql.so
#LoadModule auth_remote_module modules/mod_auth_remote.so
#LoadModule sspi_auth_module modules/mod_auth_sspi.so
#LoadModule log_sql_module modules/mod_log_sql.so
#LoadModule log_sql_mysql_module modules/mod_log_sql_mysql.so
#<IfModule ssl_module>
#    LoadModule log_sql_ssl_module modules/mod_log_sql_ssl.so
#</IfModule>
#LoadModule proxy_html_module modules/mod_proxy_html.so
#LoadModule xmlns_module modules/mod_xmlns.so
#LoadModule proxy_xml_module modules/mod_proxy_xml.so
#LoadModule bw_module modules/mod_bw.so

ServerAdmin admin@localhost
ServerName localhost:80
DocumentRoot "C:/Programme/xampp/htdocs"

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

<Directory "C:/Programme/xampp/htdocs">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule dir_module>
    DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
</IfModule>

<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
</FilesMatch>

ErrorLog logs/error.log
LogLevel warn

<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog logs/access.log common
</IfModule>

<IfModule alias_module>
    ScriptAlias /cgi-bin/ "C:/Programme/xampp/cgi-bin/"
</IfModule>

<Directory "C:/Programme/xampp/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddHandler cgi-script .cgi
</IfModule>

Include conf/extra/httpd-xampp.conf
Include conf/extra/httpd-multilang-errordoc.conf
Include conf/extra/httpd-autoindex.conf
Include conf/extra/httpd-languages.conf
Include conf/extra/httpd-userdir.conf
Include conf/extra/httpd-info.conf
Include conf/extra/httpd-vhosts.conf
Include conf/extra/httpd-manual.conf
Include conf/extra/httpd-dav.conf
Include conf/extra/httpd-default.conf
Include conf/extra/httpd-ssl.conf
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>


------------------------------
HTTPD-VHOST.CONF
------------------------------
Code: Select all
<VirtualHost 192.168.100.10:80>
    ServerAdmin admin@test.de
    DocumentRoot D:/
    ServerName test.de
    ServerAlias www.test.de
</VirtualHost>


------------------------------
ERROR.LOG
------------------------------
Code: Select all
[Thu Feb 02 20:07:33 2006] [error] [client 192.168.100.10] client denied by server configuration: D:/index.html



------------------------------
SYSTEM
------------------------------
Code: Select all
- XAMPP 1.5.1
- Win2003


Falls ihr nochmehr Infos braucht, sagt einfach bescheid.

Danke, Micha
micha80
 
Posts: 6
Joined: 02. February 2006 20:11

Postby Wiedmann » 02. February 2006 20:54

------------------------------
HTTPD-VHOST.CONF
------------------------------
Code: Select all
<VirtualHost 192.168.100.10:80>
    ServerAdmin admin@test.de
    DocumentRoot D:/
    ServerName test.de
    ServerAlias www.test.de
</VirtualHost>

Irgendie fehlt hier für das DocumentRoot ein Directory-Block der überhaupt den Zugriff erlaubt.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby micha80 » 02. February 2006 20:57

werden die irgendwo anders included? ich hab einfach einen beispiel block aus der httpd-vhost auskommentiert und angepasst.

micha
micha80
 
Posts: 6
Joined: 02. February 2006 20:11

Postby Wiedmann » 02. February 2006 21:07

werden die irgendwo anders included?

Nö, dann würd's ja nicht fehlen. Wenn du da Zugriff erleuben willst, musst du das schon da reinschreiben.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby micha80 » 02. February 2006 21:16

hallo wiedmann,

ich habe nu folgendes geändert:

------------------------------
HTTPD-VHOST.CONF
------------------------------
Code: Select all
<Directory D:/>
    Options Indexes FollowSymLinks
     AllowOverride None
</Directory>

<VirtualHost 192.168.100.10:80>
    ServerAdmin admin@test.de
    DocumentRoot D:/
    ServerName test.de
    ServerAlias www.test.de
</VirtualHost>


leider bekomme ich immer noch denselben fehler aber ich habe eine besonderheit festgestellt. oder vieleicht ist das ja auch normal...

mit aufruf der index.html an der url kommt in der error.log ein anderer fehler:

------------------------------
ERROR.LOG
------------------------------
Code: Select all
The given path was above the root path


hoffe du kannst mir weiterhelfen...

micha
micha80
 
Posts: 6
Joined: 02. February 2006 20:11

Postby micha80 » 04. February 2006 11:54

hat keiner einen tip???

micha
micha80
 
Posts: 6
Joined: 02. February 2006 20:11

Postby deepsurfer » 05. February 2006 14:18

hhhmmmmmmmmm, könnte so sein
Code: Select all
<VirtualHost 192.168.100.10:80>
    ServerAdmin admin@test.de
    DocumentRoot D:/
    ServerName test.de
    ServerAlias www.test.de
<Directory D:/>
    Options Indexes FollowSymLinks
     AllowOverride All
</Directory>
</VirtualHost>
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby micha80 » 05. February 2006 15:28

danke für den tip... hat aber leider nicht geholfen. selber fehler wie vorher. ich hab auch noch keine weitere lösungsmöglichkeit gefunden. falls also jemand einen tip hat, immer raus damit. ;)

thx, micha
micha80
 
Posts: 6
Joined: 02. February 2006 20:11

Postby deepsurfer » 05. February 2006 16:52

nur zur sicherheit mal gegenfrag....
die IPnummer ist aber die selbe wie die LAN-IP des PC wo der XAMPP läuft ?
und nicht einfach eine weitere Zahl genommen weil es so schöner aussieht ?
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby micha80 » 05. February 2006 17:34

hä? ich hoffe ich hab die frage richtig verstanden... :

der webserver hat die ip-adresse 192.168.100.10 und die hab ich bei dem vhost so angegeben.
das ist die richtige ip-adresse des servers.

gruß, micha
micha80
 
Posts: 6
Joined: 02. February 2006 20:11


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 29 guests