简体   繁体   中英

Question About Redirection Https to Another Webiste on Apache

I got following problem when configuring website using ubuntu / apache:

I have two websites, let says its xxx.com and yyy.com

My problem is, we decide to merge the website into yyy.com, thus do redirection for all request from xxx.com to yyy.com

Then I put this on my configuration file:

<VirtualHost *:80>
ServerName xxx.com
Redirect / https://www.yyy.com/en/xxx
</VirtualHost>

<VirtualHost *:80>
ServerName www.xxx.com
Redirect / https://www.yyy.com/en/xxx
</VirtualHost>

Here are the result when i try to access in url:

  • xxx.com moved to new website (success)
  • www.xxx.com moved to new website (succeess)
  • https://www.xxx.com FAILED -> I got this error on my Chrome: "This site can't be reached. The connection was reset."

I don't know if this related, but my xxx.com is using Positive SSL Wildcard.

Can anyone help me on why my redirection not working when I'm access my xxx website using https://?

I'm sorry if the question is very basic. Your help will be much appreciated.

I found out that there is some misconfiguration on one of our subdomain part. Not sure why, but when I fix the misconfiguration, somehow the redirection (who actually doesn't call the subdomain) works

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM