ich habe nun einige vhosts angelegt. Zuerstmal einen, aber später
auch mehrere davon sollen auch per https erreichbar sein. Ich habe
das nun erstmal so gelöst, wie ich es vorher hatte und wie es funktioniert
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>
ServerAdmin martinhein@meinvhost1.leopold.net
DocumentRoot "/Applications/xampp/xamppfiles/htdocs"
ServerName xampp.leopold.net
ServerAlias localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Users/martinhein/Sites/daimler-bkk26"
ServerName daimler-bkk26.leopold.net
ErrorLog "logs/daimler-bkk26-error_log"
CustomLog "logs/daimler-bkk26-access_log" common
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "/Users/martinhein/Sites/daimler-bkk26"
ServerName daimler-bkk26.leopold.net
ErrorLog "logs/daimler-bkk26-error_log"
CustomLog "logs/daimler-bkk26-access_log" common
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>
Bei der Kontruktion gefällt mir nicht, dass ich den quasi selben vhost 2 mal
definieren muss. Halt einmal für Port 80 und einmal für 443. Lässt sich das
eleganter definieren ?
danke für Tipps und
beste gruesse,
heinetz