httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Cooper <nick.coo...@jdi-solutions.co.uk>
Subject Re: [users@httpd] Apache SSL and Rewrite Rules
Date Tue, 31 Mar 2009 10:56:33 GMT
I have the following .htaccess

<Files somepage.php>
AuthName "Admin"
AuthUserFile .htpasswd
Require valid-user
</Files>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /folder
RewriteRule ^$ index.php
RewriteRule ^admin/$ admin/admin.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /handlerequests/default.php [L,QSA,E=CPAGE:$1]

But I think the problem might then me with the whole server setup.

I have various subdomains each with their own vHosts.

Some of these subdomains require SSL, to avoid the cost of additional IPs I
setup SSL to use a different Port for every vHost that required it.

e.g.
https://sub1.domain.com:10001/
https://sub2.domain.com:10002/
If more details are needed let me know.


2009/3/31 Eric Covener <covener@gmail.com>

> On Tue, Mar 31, 2009 at 6:29 AM, Nick Cooper
> <nick.cooper@jdi-solutions.co.uk> wrote:
> > I am having some problems with SSL and Rewrite rules, the rewrite rule
> works
> > when not under SSL.
> > I understand that an SSL connection occurs before any Rewrite rule has a
> > chance to take place, is this correct?
>
> This is correct, the handshakehappens first but the rewrite still happens.
>
> > Is there anyway to still use Rewrite with SSL?
>
> It works the same as non-ssl. Where are your rules defined?
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message