Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Vesta is Crazy

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
guineapig
Posts: 23
Joined: Sat Aug 09, 2014 3:15 am
Contact:
Contact guineapig
Website

Vesta is Crazy
  • Quote

Post by guineapig » Tue Nov 04, 2014 1:38 pm

I have a domain with SSL added

When I browse with https://mydomain.com the site loads when I browse with http://mydomain.com the default page loads..

Its driving me crazy..
Top

Milka
Posts: 137
Joined: Tue Feb 11, 2014 2:03 pm

Re: Vesta is Crazy
  • Quote

Post by Milka » Tue Nov 04, 2014 1:50 pm

guineapig wrote:I have a domain with SSL added

When I browse with https://mydomain.com the site loads when I browse with http://mydomain.com the default page loads..

Its driving me crazy..
It's pretty simple though ;-)

Do I understand correctly that you want to direct the http visitors to https automatically? You can force visitors to use SSL by creating a file in your public_html folder. The file should be called .htaccess and it should contain the following:

Code: Select all

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
Top

guineapig
Posts: 23
Joined: Sat Aug 09, 2014 3:15 am
Contact:
Contact guineapig
Website

Re: Vesta is Crazy
  • Quote

Post by guineapig » Tue Nov 04, 2014 2:39 pm

Sir,

Thank you for the reply. I do not want to redirect the visitors to https because there are too many mixed contents issue which I have to fix.. the problem is the site loads in https but not in http .. before it used to load properly in http.. this change I saw after I installed the SSL certificate..

the template broke because there were to many mixed contents issue.. so I started converting links to // and am trying to check for both http and https version but not being able to.
Top

Milka
Posts: 137
Joined: Tue Feb 11, 2014 2:03 pm

Re: Vesta is Crazy
  • Quote

Post by Milka » Tue Nov 04, 2014 4:40 pm

Excuse me being a bit rude, but please allow me to make this very clear: Your inability or incapability to develop a proper website is not a Vesta issue. Calling Vesta crazy is bollocks. You're trying to create a workaround for a problem that shouldn't exist in the first place. You need to fix the mixed content issues in your website code.
Top

szimre
Posts: 16
Joined: Sun Nov 02, 2014 11:54 pm
Contact:
Contact szimre
Website

Re: Vesta is Crazy
  • Quote

Post by szimre » Wed Nov 05, 2014 12:46 am

Hi!

When you're adding the SSL cert you have a choice to use public_html or public_shtml. The reason that http and https is different is that you might be using the https directory for the ssl. If you set it to use the normal http directory that might help solving the problem as both of http and https would load the same content. (You still have to fix your coding issues, then you can download the force-https nginx template to force all of your visitors to be redirected to the https version)
Top

Vince
Posts: 1
Joined: Thu Nov 06, 2014 7:07 pm

Re: Vesta is Crazy
  • Quote

Post by Vince » Thu Nov 06, 2014 7:19 pm

Do I understand correctly that you want to direct the http visitors to https automatically? You can force visitors to use SSL by creating a file in your public_html folder. The file should be called .htaccess and it should contain the following:

Code: Select all

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
Thank you for posting that Milka!

I did install custom force-https nginx template as outlined in the documentation. However, I am the only user and do not know how change my existing package to the force-https package.

The .htaccess file works fine.

Thanks again!
Top

nelblack
Posts: 11
Joined: Tue Jan 07, 2014 10:59 pm

Re: Vesta is Crazy
  • Quote

Post by nelblack » Mon Nov 24, 2014 3:38 pm

guineapig wrote:Sir,

Thank you for the reply. I do not want to redirect the visitors to https because there are too many mixed contents issue which I have to fix.. the problem is the site loads in https but not in http .. before it used to load properly in http.. this change I saw after I installed the SSL certificate..

the template broke because there were to many mixed contents issue.. so I started converting links to // and am trying to check for both http and https version but not being able to.
I have the same problem here. After install the SSL Certificates, the domain will auto redirect to https://, I just need SSL-encrypted when users process to checkout page on my e-commerce site. And I try to turn off the nginx support and domain won't redirect to https:// but lost the SSL support.

So I think the problem is came form VestCP or nginx's conf because I just backup whole site form cPanel/WHM to VestCP.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Vesta is Crazy
  • Quote

Post by imperio » Mon Nov 24, 2014 8:06 pm

http://vestacp.com/docs/#how-to-force-https
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password