Re: [users@httpd] Vitualhosts ssl and apache2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Vincent, ok - I am trying something else that I have partially working but I need something to fix my regex to catch to domain properly. So may have need a RewriteCond that can compare domain name coming in.

Here is what I have got so far but since my regex is not right for domains - it moves on to the last RewriteRule that I have set up which places it in the zope root - but good thing is that ssl works properly. So I need a proper regex that will catch the domain so it will land on the right rewrite rule. Many thanks.

Regards,
David

<VirtualHost *:443>
  RewriteEngine On
  RewriteRule ^.*mydomain\.com/(.*)
http://127.0.0.1:8080/am11727372/++vh++https:www.mydomain.com:443/++/$1 [L,P] RewriteRule ^.*mydomain1\.com/(.*) http://127.0.0.1:8080/am12704055/++vh++https:www.mydomain1.com:443/++/$1 [L,P] RewriteRule ^/(.*) http://127.0.0.1:8080/++vh++https:%{HTTP_HOST}:443/++/$1 [L,P]

  SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  SSLCertificateFile /usr/local/etc/apache2/ssl.crt/self_signed.cert
  SSLCertificateKeyFile /usr/local/etc/apache2/ssl.key/self_signed.key
  SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire
  <Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
  </Files>
  <Directory /usr/local/www/cgi-bin">
    SSLOptions +StdEnvVars
  </Directory>

  SetEnvIf User-Agent ".*MSIE.*" \
           nokeepalive ssl-unclean-shutdown \
           downgrade-1.0 force-response-1.0
</VirtualHost>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux