Web Hosting Talk







View Full Version : mod_rewrite plesk and https


WebBloom
03-25-2002, 04:27 PM
Here's the scenario:

I have Plesk installed on a Red Hat Linux server.
I would like to setup mod_rewrite rules for https requests.

Because it is a Plesk machine you put the mod_rewrite rules in a vhost.conf file in a directory like /var/www/vhosts/domain.com/conf

I have done this and the rules work fine. The problem is that I can not get any of the rules to apply to a https page. Even if I take away all the conditions, the rule will only be applied to http requests.

Any help would be greatly appreciated.

Thank you,

David Delisle

Ales
03-27-2002, 11:35 PM
Well, it's not a bug :) You need to use another separate .conf file for the SSL, called vhost_ssl.conf.

Just use it the same way you use vhost.conf...

WebBloom
03-28-2002, 12:17 AM
Thanks,

I figured it was something like that. I'll try it right away.

David Delisle