Jump to content
  • 0

How Configure Blesta With Ssl Properly


alexistkd

Question

8 answers to this question

Recommended Posts

  • 0

Okay...  Doesn't everyone use SSL?   Can we please add this to the documentation.  Better yet, let me check ssl next to my url in the general settings.

 

EDIT --  My bad...  looks like this is done by default.   So the fact that it's not directing probably has something to do with my server....

 

EDIT2 ---  On closer look, the issue was that the .htaccess rules in my Blesta install directory were commented out.

 

Changed

 

#RewriteCond %{HTTPS} !=on

#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=307,NE,L]

 

to 

 

RewriteCond %{HTTPS} !=on

RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=307,NE,L]

 

All good now.

Link to comment
Share on other sites

  • 0

Looks like this is resolved, but just to add.. the reason the lines are commented out by default is that we'd get a lot more complaints about things not working if we forced SSL out of the box. Everyone should use SSL for their Blesta installations, but many do not, or they set it up after installation is completed.

Link to comment
Share on other sites

  • 0

Sorry to take this old topic, but I just installed SSL for my Blesta at https://domain.com/blesta/, and add .htaccess file with above content. However, it seems only loading the default theme, and I cannot login to admin anymore. It always comes back to default portal.

 

So, is the code above working with blesta installed in a sub-folder?

 

Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...