Ich habe auf meinem Windows Vista Home Premium XAMPP 1.6.3a installiert. Nach einer Bearbeitung der httpd.conf auf Port 8080 (Skype ist installiert) funktioniert der Server auch.
Nun wollte ich mod_rewrite aktivieren in der httpd.conf und der Server stützt ab.
Installationsverzeichnis: D:\server\ (ohne XAMPP. Ist das XAMPP Verzeichnis)
Folgende Änderungen wurden durchgeführt:
httpd.conf:
- Code: Select all
ServerName localhost:8080
extra/httpd-vhosts.conf:
- Code: Select all
################################################
# VirtualHost's
################################################
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName localhost
AddType text/html .shtml
AddHandler server-parsed .shtml
ServerAdmin webmaster@localhost
DocumentRoot "D:/server/htdocs"
ScriptAlias /cgi-bin/ "D:/server/cgi-bin/"
<Directory "D:/server/htdocs">
Options Indexes FollowSymLinks
AllowOverride FileInfo
Order allow,deny
Allow from all
DirectoryIndex index.php index.html index.htm
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName www.dev5-media.lh
ServerAlias dev5-media.lh
AddType text/html .shtml
AddHandler server-parsed .shtml
ServerAdmin webmaster@dev5-media.lh
DocumentRoot "D:/server/vhosts/dev5-media.de/httpdocs"
ScriptAlias /cgi-bin/ "D:/server/vhosts/dev5-media.de/cgi-bin/"
<Directory "D:/server/vhosts/dev5-media.de/httpdocs">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.php index.html index.htm
</Directory>
</VirtualHost>
Mit diesen Einstellungen funktioniert XAMPP - nur nicht mit mod_rewrite.