Re: Problems with rewrite and SSL

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

 



On Thu, May 22, 2008 at 12:41 PM, Daniel Ruiz <daniel.ruiz@xxxxxxxxxxx> wrote:

> Can anyone help me!?!?!?!?!?!

You probably should use %{HTTP_HOST} in stead of %{SERVER_NAME}.
HTTP_HOST is the variable where the "host" header is stored.

A note about this part of your config:

>    <VirtualHost A:80>
>           ...
>            ServerName A
>            RewriteEngine On
>            RewriteLog /var/log/apache2/http_rewrite_log
>            RewriteLogLevel 9
>            RewriteCond %(SERVER_PORT) !^443$
>            RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
>           ...
>    </VirtualHost>

You don't need the rewritecond here as SERVER_PORT will always be 80...

Krist



-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
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