|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Mass virtual hosting
I'm using Apache as a proxy for Zope.
For each Zope-site I have a file which I include in the httpd.conf The Zope sites may be accessed via https on the subdomain config.domain.net. My problem is the I cannot do namebased virtualhosting since this is in conflict with the nature of SSL. So I tried to see if mod_rewrite was my friend. Problem with that solution is that SSLEngine is always On, so any http requests result in a mod_ssl:error:HTTP-request. Is my only chance ifconfig? Or is there a solution to this tailbiting problem? ServerName www.tekk.dk ServerAdmin admin DocumentRoot /var/zope-sites/Tekk/static CustomLog /var/zope-sites/Tekk/logs/access_log combined #RedirectMatch (.*)/manage$ https://config.tekk.dk/Tekk$1/manage RewriteEngine on RewriteRule ^/images/ - [L] RewriteCond %{SERVER_PORT} ^80$ RewriteCond %{HTTP_HOST} ^www.tekk.dk$ RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/www. kk/VirtualHostRoot/$1 [P] ServerName config.tekk.dk ServerAdmin admin RewriteEngine on RewriteCond %{HTTP_HOST} ^config.tekk.dk$ RewriteCond %{SERVER_PORT} ^80$ [OR] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^/(.*) https://config.tekk.dk/manage [R,L] ServerName config.tekk.dk ServerAdmin admin DocumentRoot /var/zope-sites/Tekk/static CustomLog /var/zope-sites/Tekk/logs/access_log combined RewriteEngine on RewriteRule ^/images/ - [L] RewriteCond %{HTTP_HOST} ^config.tekk.dk$ RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBa...nfig.tekk.dk:4\ 43/VirtualHostRoot/$1 [P] SSLEngine ON SSLCertificateFile /var/zope-sites/Tekk/conf/ssl/server.pub SSLCertificateKeyFile /var/zope-sites/Tekk/conf/ssl/server.key SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
__________________
\Oliver For those about to php - we salute you! |
|
#2
|
|||
|
|||
|
First off start here and see how mod_rewrite works for setting up a reverse proxy vhost site.
>> Problem with that solution is that SSLEngine is always On Why so? Just put everything within the following blocks for HTTPS: Code:
<IfDefine SSL> <VirtualHost 12.34.56.78:443> >> RewriteCond %{SERVER_PORT} ^80$ Matching a port 80 condition is almost never needed. >> RewriteCond %{HTTP_HOST} ^www.tekk.dk$ You need to escape the dots. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Mass virtual hosting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|