We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
how to exclude certain subdomain from entire website HTTPS?
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
how to exclude certain subdomain from entire website HTTPS?
My website had enabled HTTPS for entire site (SSL certificate is for *.domain.com ). But now, I need to exclude two subdomains, because those two subdomains are actually CNAME links to external resources, which do NOT allow accessing with HTTPS protocol.
How can I exclude those two subdomains from SSL when entire website had enabled HTTPS?
Thank you.
How can I exclude those two subdomains from SSL when entire website had enabled HTTPS?
Thank you.
Re: how to exclude certain subdomain from entire website HTTPS?
Please try the following code -
Code: Select all
RewriteRule (.*) https://www.mydomain.com$1 [R=301,L]
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: how to exclude certain subdomain from entire website HTTPS?
I need to use HTTPS for ALL my URLs except:
Your rewrite rule does not work.
Thank you.
Code: Select all
image.mydomain.com
file.mydomain.com
Thank you.
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: how to exclude certain subdomain from entire website HTTPS?
When you add the web domains image.mydomain.com and file.mydomain.com don't enable ssl/https.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: how to exclude certain subdomain from entire website HTTPS?
When I tried to add new web record in VestaCP, there is no input box for subdomains. And, the IP address is fixed, I can not input other IP address.
But, my subdomain image.mydomain.com was linked to other IP address via CNAME record on my domain registration account.
Do you really understood my situation here?
Thank you.
But, my subdomain image.mydomain.com was linked to other IP address via CNAME record on my domain registration account.
Do you really understood my situation here?
Thank you.
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: how to exclude certain subdomain from entire website HTTPS?
Subdomains are added similar to normal domains. It's normal that only the IP's assigned to your server are visible when you add your 'web domain'. If you add only your main domain and enable your SSL certificate, only that domain can be accessed over SSL.