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