Apache öffnet index.html nicht automatisch

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

Apache öffnet index.html nicht automatisch

Postby Pascha » 06. March 2015 11:38

Hallo zusammen
ich habe XAMPP auf D:/XAMPP installiert und Apache startet automatisch beim Windows Login. Nun mein Problem in d:/xampp/htdocs liegt eine index.html, die leider nicht beim Start aufgerufen wird, sondern ich muß sie immer über 192.168.178.xx/index.html aufrufen, ansonsten startet die Seite mit http://192.168.178.xx/xampp/.
Der Ausschnitt meiner httpd.config für Directory sieht so aus

DocumentRoot "D:/XAMPP/htdocs"
<Directory "D:/XAMPP/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
home.php home.pl home.cgi home.asp home.shtml home.html home.htm
</IfModule>

was ist falsch, daß immer 192.168.178.xx/xampp aufgerufen wird.
Gruß Günter
Pascha
 
Posts: 2
Joined: 06. March 2015 11:27
Operating System: Windows 7 32bit

Re: Apache öffnet index.html nicht automatisch

Postby Altrea » 06. March 2015 15:33

Nichts ist falsch.
Im htdocs Ordner liegt neben der index.html noch eine index.php, welche nach der Einstellung DirectoryIndex in deiner Apache httpd.conf Vorrang hat.
Wenn du dir diese Index.php ansiehst wirst du darin eine Weiterleitung auf das xampp Unterverzeichnis finden.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache öffnet index.html nicht automatisch

Postby Pascha » 06. March 2015 16:56

Hi
habe ich auch gesehen, leider zu spät, ansonsten hätte ich nicht gefragt. Danke.
Gruß Günter
Pascha
 
Posts: 2
Joined: 06. March 2015 11:27
Operating System: Windows 7 32bit


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 35 guests