Ich habe ein eigenes Zertifikat auf die Domain "ssl-domain.tld"
Darauf beruht nachfolgende Anteiltung zum https-proxy.
1. Ã?nderung
In der Datei /etc/sysconfig/apache2 in der Zeile 133 beginnend mit APACHE_MODULES="access actions alias auth ....." wie folgt abändern:
APACHE_MODULES="access actions alias auth ..... proxy proxy_http"
(Die Punkte natütlich nicht mit einbauen :-))
2. Ã?nderung
Ich habe meine confixx_mhost.conf wie folgt angepasst.
Code: Select all
## CONFIXX
<Directory "/srv/www/confixx/html">
AllowOverride all
<IfModule mod_access.c>
Allow from all
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymlinks
RewriteRule ^reseller/skins/(.*)$ reseller/skins/$1 [L]
RewriteRule ^reseller/[^/]+/(.*)$ reseller/$1 [L]
RewriteRule ^user/skins/(.*)$ user/skins/$1 [L]
RewriteRule ^user/[^/]+/(.*)$ user/$1 [L]
RewriteRule ^ftplogin/[^/]+/(.*)$ ftplogin/$1 [L]
RewriteRule ^poplogin/[^/]+/(.*)$ poplogin/$1 [L]
</IfModule>
</Directory>
NameVirtualHost xxx.xxx.xxx.xxx:80
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName ssl-domain.tld
ServerAlias www.ssl-domain.tld
DocumentRoot /srv/www/confixx/html
Options FollowSymLinks
php_admin_value safe_mode Off
php_flag magic_quotes_gpc Off
php_admin_flag file_uploads On
php_admin_value track_vars On
php_admin_value upload_tmp_dir /srv/www/confixx/tmp
php_admin_value include_path ".:/srv/www/confixx/html/include:/srv/www/confixx/html"
ScriptAlias /cgi-bin/ /srv/www/confixx/html/cgi-bin/
CustomLog /var/log/apache2/confixx.pxxxxxxxx.pureserver.info_access.log "%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i""
ErrorLog /var/log/apache2/confixx.pxxxxxxxx.pureserver.info_error.log
</VirtualHost>
NameVirtualHost xxx.xxx.xxx.xxx:443
<VirtualHost xxx.xxx.xxx.xxx:443>
ServerName ssl-domain.tld
ServerAlias www.ssl-domain.tld
DocumentRoot /srv/www/confixx/html
Options FollowSymLinks
php_admin_value safe_mode Off
php_flag magic_quotes_gpc Off
php_admin_flag file_uploads On
php_admin_value track_vars On
php_admin_value upload_tmp_dir /srv/www/confixx/tmp
php_admin_value include_path ".:/srv/www/confixx/html/include:/srv/www/confixx/html"
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/apache2/ssl-zert/sslcertifikat.crt
SSLCertificateKeyFile /etc/apache2/ssl-priv/newkey.pem
SSLCACertificateFile /etc/apache2/ssl-zert/ca3-bundle
SetEnvIf User-Agent ".*MSIE.*"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
<Files ~ ".(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/srv/www/confixx/html/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
ScriptAlias /cgi-bin/ /srv/www/confixx/html/cgi-bin/
CustomLog /var/log/apache2/confixx.pxxxxxxxx.pureserver.info_access.log "%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i""
ErrorLog /var/log/apache2/confixx.pxxxxxxxx.pureserver.info_error.log
Include /etc/apache2/ssldomains
</VirtualHost>
Include /etc/apache2/confixx_vhost.conf
# ^- Dieser Eintrag sollte unbedingt am Ende der Datei bleiben
## /CONFIXX
3. Ã?nderung
Anlegen der Datei ssldomains im Verzeichnis /etc/apache2/
Die Datei sollte folgenden Inhalt haben:
Code: Select all
RedirectPermanent /kundendomain1.tld https://ssl-domain.tld/kundendomain1.tld/
ProxyPass /kundendomain1.tld/ http://www.kundendomain1.tld/
ProxyPassReverse /kundendomain1.tld/ http://www.kundendomain1.tld/
RedirectPermanent /kundendomain2.tld https://ssl-domain.tld/kundendomain2.tld/
ProxyPass /kundendomain2.tld/ http://www.kundendomain2.tld/
ProxyPassReverse /kundendomain2.tld/ http://www.kundendomain2.tld/
RedirectPermanent /kundendomain3.tld https://ssl-domain.tld/kundendomain3.tld/
ProxyPass /kundendomain3.tld/ http://www.kundendomain3.tld/
ProxyPassReverse /kundendomain3.tld/ http://www.kundendomain3.tld/
3. Ã?nderung
Apache neu starten mit rcapache2 restart
TEST:
Der Kunde kann dann seine Domain über https://ssl-domain.tld/kundendomain1.tld aufrufen
Confixx kann problemlos über die SSL-Domain aufgerufen werden:
https://ssl-domain.tld
https://ssl-domain.tld/reseller
https://ssl-domain.tld/admin
Confixx beraucht NICHT in der Datei ssldomains konfiguriert werden.
So, gemeinsam kommt man doch ans Ziel !!
Ich hoffe es hilft und es ist eindeutig erklärt.