[Resolved] How to add redirects from HTTPS to HTTPS

Status
Not open for further replies.
#1
Hello,

I cannot figure out how to configure my web server for the following scenario:

1- I don't want to redirect HTTP to HTTPS.
2- I want HTTP to stay HTTP
3- I want HTTPS to stay HTTPS


In apache this is fairly easy. I have a virtual host for 80 and other for 443 and I can have independent rewrite rules on each.

In LSWS I cannot find a way to do the same. When I create a new vhost I can only associate with an existing Listener but it does not let me setup the vhost to be 80 or 443 (Non SSL or SSL), unless I'm missing something here.

help!

thank you.
 

mistwang

LiteSpeed Staff
#2
If the redirect is done with rewrite rule. just disable the rewrite rule.
If the redirect is from PHP code, then you need to fix PHP code.
If you want to have different vhost for HTTP and HTTPS, just create another one for HTTPS with "_https" in the vhost name, then bind to the HTTPS listener. The redirect has nothing to do with that.
 
Status
Not open for further replies.
Top