Ich habe in der httpd.conf VirtualHosts erstellt. Hier der Ausschnitt:
httpd.conf
- Code: Select all
NameVirtualHost 127.0.0.1:80
<VirtualHost localhost:80>
ServerName localhost:80
DocumentRoot "c:/Programe/xampp/htdocs"
<Directory "c:/Programme/xampp/htdocs">
Order Allow,Deny
Allow from all
#Options All
#AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost web1.root.local:80>
ServerName localhost:80
DocumentRoot "c:/Programme/xampp/htdocs/www/web1"
<Directory "c:/Programme/xampp/htdocs/www/web1">
Order Allow,Deny
Allow from all
#Options All
#AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost web2.root.local:80>
ServerName localhost:80
DocumentRoot "c:/Programme/xampp/htdocs/www/web2"
<Directory "c:/Programme/xampp/htdocs/www/web2">
Order Allow,Deny
Allow from all
#Options All
#AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost web3.root.local:80>
ServerName localhost:80
DocumentRoot "c:/Programme/xampp/htdocs/www/web3"
<Directory "c:/Programme/xampp/htdocs/www/web3">
Order Allow,Deny
Allow from all
#Options All
#AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost script.root.local:80>
ServerName localhost:80
DocumentRoot "c:/Programme/xampp/htdocs/www/script"
<Directory "c:/Programme/xampp/htdocs/www/script">
Order Allow,Deny
Allow from all
#Options All
#AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost phpmyadmin.root.local:80>
ServerName localhost:80
DocumentRoot "c:/Programme/xampp/phpmyadmin"
<Directory "c:/Programme/xampp/phpmyadmin">
Order Allow,Deny
Allow from all
#Options All
#AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost churchms.web1.local:80>
ServerName localhost:80
DocumentRoot "c:/Programme/xampp/htdocs/www/web1/church_ms"
<Directory "c:/Programme/xampp/htdocs/www/web1/church_ms">
Order Allow,Deny
Allow from all
#Options All
#AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost notice.web2.local:80>
ServerName localhost:80
DocumentRoot "c:/Programme/xampp/htdocs/www/web2/notice"
<Directory "c:/Programme/xampp/htdocs/www/web2/notice">
Order Allow,Deny
Allow from all
#Options All
#AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost smarty.script.local:80>
ServerName localhost:80
DocumentRoot "c:/Programme/xampp/htdocs/www/script/smarty/Smarty/libs"
<Directory "c:/Programme/xampp/htdocs/www/script/smarty/Smarty/libs">
Order Allow,Deny
Allow from all
#Options All
#AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost tinymce.script.local:80>
ServerName localhost:80
DocumentRoot "c:/Programme/xampp/htdocs/www/script/tiny_mce"
<Directory "c:/Programme/xampp/htdocs/www/script/tiny_mce">
Order Allow,Deny
Allow from all
#Options All
#AllowOverride All
</Directory>
</VirtualHost>
hosts
- Code: Select all
127.0.0.1 localhost
127.0.0.1 localhost
127.0.0.1 web1.root.local
127.0.0.1 web2.root.local
127.0.0.1 web3.root.local
127.0.0.1 script.root.local
127.0.0.1 phpmyadmin.root.local
127.0.0.1 churchms.web1.local
127.0.0.1 notice.web2.local
127.0.0.1 smarty.script.local
127.0.0.1 tinymce.script.local
Es klappt auch alles perfekt, nur wenn ich auf http://localhost gehe, um in den Ordner xampp/ umgeleitet zu werden, kommt eine Error 403 Meldung.
Was muss ich ändern, damit es wieder funktioniert?
Vielen Dank im Vorraus!