ich habe ein kleines Problem mit meiner httpd-vhosts.conf
- Code: Select all
NameVirtualHost *:80
NameVirtualHost *:443
<Directory "/Users/martinhein/Sites">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
UseCanonicalName off
servername %1.leopold.net
VirtualDocumentRoot /Users/martinhein/Sites/%1
</VirtualHost>
<VirtualHost *:443>
UseCanonicalName off
servername %1.leopold.net
VirtualDocumentRoot /Users/martinhein/Sites/%1
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /Applications/xampp/etc/ssl.crt/server.crt
SSLCertificateKeyFile /Applications/xampp/etc/ssl.key/server.key
</VirtualHost>
<VirtualHost *:80>
ServerName localhost
ServerAlias leopold
DocumentRoot "/Applications/xampp/xamppfiles/htdocs"
</VirtualHost>
Alle Anfrage von vhosts nach dem Muster http://<verzeichnis_name>.leopold.net zeigen
auf den entsprechenden Inhalt unter:
/Users/martinhein/Sites/<verzeichnis_name>,
Anfrage von http://localhost und http://leopold zeigen auf den Inhalt unter:
/Applications/xampp/xamppfiles/htdocs
Soweit sogut. Wie sorge ich dafür, dass alle anderen Anfrage auch immer auf:
/Applications/xampp/xamppfiles/htdocs
... zeigen ?
danke für Tipps und
beste gruesse,
heinetz