Virtual Host leitet immer wieder zu Standard-Seite

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

Virtual Host leitet immer wieder zu Standard-Seite

Postby markai » 10. December 2013 18:36

Hallo zusammen,

ich habe folgendes Problem:
ich habe XAMPP unter Windows 8 installiert und wollte mit Hilfe eines Virtual Host unter Eingabe von "localhost" zur Standard-XAMPP-Seite weiterleiten und unter Eingabe von "localwebsite" zu einer eigenen Website weiterleiten.
ich habe die httpd.conf folgendermaßen geändert:
Code: Select all
DocumentRoot "C:/XAMPP/htdocs"
<Directory "C:/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>

NameVirtualHost *:80

<VirtualHost *:80>
   DocumentRoot C:/XAMPP/htdocs
   ServerName localhost
</VirtualHost>

<VirtualHost *:80>
    ServerName localwebsite
    DocumentRoot "C:/Users/m/Dropbox/PHP/website"
    DirectoryIndex index.html index.php
    <Directory "C:/Users/m/Dropbox/PHP/website">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
   </Directory>
</VirtualHost>


Wenn ich jedoch "localwebsite" eingebe, werde ich dennoch zur Standard-XAMPP-Seite weitergeleitet.

Vielen Dank für Eure Hilfe!

Gruß
markai
markai
 
Posts: 1
Joined: 10. December 2013 18:29
Operating System: Windows 8

Re: Virtual Host leitet immer wieder zu Standard-Seite

Postby Nobbie » 10. December 2013 23:41

Im Errorlog steht die Erklärung.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 60 guests