Re: [users@httpd] mod_rewrite not seeing https requests

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

 



> Hi,
>
> Try placing your rewrite directives in SSL Virtual host. Your
> directives are not working possibly because ssl data is not decrypted
> yet.
>
> Regards,
> Alpay

/me puts on dunce cap

I *swear* I tried that already, it works now :P  Thats what I get for
working when short of sleep :(

Thanks,
Jonathan

>
> 2005/10/30, jonathan@xxxxxxxxxx <jonathan@xxxxxxxxxx>:
>> Hello,
>>
>> I'm running
>> Apache/2.0.55 (FreeBSD) DAV/2 PHP/5.0.5 SVN/1.2.3 mod_ssl/2.0.55
>> OpenSSL/0.9.7e
>> and I am using mod_rewrite to redirect requests for http://domain.com to
>> http://www.domain.com and it's working fine for http but for some reason
>> not at all for https.  I have the following in the global portion of my
>> httpd.conf
>>
>> RewriteEngine On
>> RewriteCond %{HTTP_HOST}   !^www\.kc8onw\.net [NC]
>> RewriteCond %{HTTP_HOST}   !^$
>> RewriteRule ^/(.*)         http://www.kc8onw.net/$1 [L,R]
>> RewriteLog /var/log/httpd-rewrite.log
>> RewriteLogLevel 9
>>
>> I have SSL setup like this
>>
>> <VirtualHost _default_:443>
>> #   General setup for the virtual host
>> DocumentRoot "/usr/local/www/data"
>> ServerName kc8onw.net:443
>> ServerAlias www.kc8onw.net:443
>> ServerAdmin www@xxxxxxxxxx
>> ErrorLog /var/log/httpd-error.log
>> TransferLog /var/log/httpd-access.log
>>
>> I've googled for a few days with variations on the subject of this mail
>> and have not been able to find an answer, I keep getting http -> https
>> issues which is not currently my problem.  Checking the rewrite log
>> after
>> an http request I see mod_rewrite checking and rewriting urls but
>> nothing
>> shows up at all for an https request.  Any pointers or possible
>> explanations would be greatly appreciated.  If it would help to see the
>> full config files I can either put them on the site or attach them I
>> just
>> didn't want to send all that in the first mail.
>>
>> Thank you,
>> Jonathan





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