UseCanonicalName

sofatime

Well-Known Member
#1
Hi,

We would like to use the Apache directive "UseCanonicalName Off". Is the equivalent setting available in litespeed? I tried to use "UseCanonicalName Off" in .htaccess and in the "apache style configuration" field, but with no success.

Short background explanation: We use a reverse proxy in front of our sites. This proxy is the HTTPS endpoint and the connection between the proxy and the origin server with litespeed is HTTP. If a client now requests an URL like
Code:
https://www.domain.tld/path
litespeed does an automatic redirect to
Code:
http://www.domain.tld/path/
This is not a problem for normal users, as the reverse proxy redirects again to https, but apparently the Google spider does not like it.

Any ideas?

Thanks
Daniel
 
Last edited by a moderator:

mistwang

LiteSpeed Staff
#2
the frontend proxy should send "X-Forwarded-Proto: https", and litespeed backend will treated it as HTTPS connections.
the redirect to http:// ... is like a configuration bug in the backend, if the site should be served with HTTPS.
 

sofatime

Well-Known Member
#3
Thank you. I added "X-Forwarded-Proto: https" to the proxy configuration, but it did not help.

configuration bug: Where could that be? I think that litespeed is doing this redirect.
 
Top