Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Language specific forums Russian (Русский) Общие вопросы
  • Search

Let`s Encrypt + Vesta = Настройка

Общие вопросы о панели управления Vesta
Post Reply
  • Print view
Advanced search
19 posts
  • Previous
  • 1
  • 2
Mr.Erbutw
Posts: 1040
Joined: Tue Apr 29, 2014 10:05 pm

Os: CentOS 6x
Web: apache + nginx
Re: Let`s Encrypt + Vesta = Настройка
  • Quote

Post by Mr.Erbutw » Tue Feb 28, 2017 3:36 pm

Metallurg.IT wrote: Теперь осталось разобраться, как сделать так, чтобы автоматом открывался https://
How to force https/SSL on a domain
1. Install custom nginx template

cd /usr/local/vesta/data/templates/web
wget http://c.vestacp.com/0.9.8/rhel/force-h ... inx.tar.gz
tar -xzvf nginx.tar.gz
rm -f nginx.tar.gz

3. Create new package or set force-https as nginx template in the existing package
4. Add new user and assing him package with force-https template
5. Add new domain with SSL certificate and check the result
Top

Metallurg.IT
Posts: 172
Joined: Tue Jan 28, 2014 10:11 am

Re: Let`s Encrypt + Vesta = Настройка
  • Quote

Post by Metallurg.IT » Tue Feb 28, 2017 3:40 pm

Mr.Erbutw wrote:
Metallurg.IT wrote: Теперь осталось разобраться, как сделать так, чтобы автоматом открывался https://
How to force https/SSL on a domain
1. Install custom nginx template

cd /usr/local/vesta/data/templates/web
wget http://c.vestacp.com/0.9.8/rhel/force-h ... inx.tar.gz
tar -xzvf nginx.tar.gz
rm -f nginx.tar.gz

3. Create new package or set force-https as nginx template in the existing package
4. Add new user and assing him package with force-https template
5. Add new domain with SSL certificate and check the result
Данные действия не сломают работу сайтов без https?
Как понимать пункты 3-4-5? Просто пересоздать записи о доменах через панель или удалять и создавать заново и пользователей, и домены?
Top

Mr.Erbutw
Posts: 1040
Joined: Tue Apr 29, 2014 10:05 pm

Os: CentOS 6x
Web: apache + nginx
Re: Let`s Encrypt + Vesta = Настройка
  • Quote

Post by Mr.Erbutw » Tue Feb 28, 2017 3:52 pm

Появиться такой пунктик
Image
или
How to redirect HTTP to HTTPS using htaccess
You can automatically redirect visitors to the secured (HTTPS) version of your site to make sure your communications are encrypted by using following .htaccess file

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Let`s Encrypt + Vesta = Настройка
  • Quote

Post by skurudo » Tue Feb 28, 2017 7:19 pm

Например так - https://vestacp.com/docs/#how-to-force-https
Top

Metallurg.IT
Posts: 172
Joined: Tue Jan 28, 2014 10:11 am

Re: Let`s Encrypt + Vesta = Настройка
  • Quote

Post by Metallurg.IT » Tue Feb 28, 2017 9:10 pm

Все сделал, все работает, ничего не поломалось.

Почему то один домен с WordPress не подсветился зеленым, но думаю решу проблему.

Благодарю всех откликнувшихся!
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Let`s Encrypt + Vesta = Настройка
  • Quote

Post by skurudo » Wed Mar 01, 2017 8:16 am

Metallurg.IT wrote: Почему то один домен с WordPress не подсветился зеленым, но думаю решу проблему.
Скорее всего дело в mixed content, т.е. есть в шаблоне где-то ссылки на http, а чтобы было зелененьким - такого быть не должно.
Top

Metallurg.IT
Posts: 172
Joined: Tue Jan 28, 2014 10:11 am

Re: Let`s Encrypt + Vesta = Настройка
  • Quote

Post by Metallurg.IT » Wed Mar 01, 2017 9:21 am

skurudo wrote:
Metallurg.IT wrote: Почему то один домен с WordPress не подсветился зеленым, но думаю решу проблему.
Скорее всего дело в mixed content, т.е. есть в шаблоне где-то ссылки на http, а чтобы было зелененьким - такого быть не должно.
На дурака, забекапился и обновил все что можно в ВП. И все заработало.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Let`s Encrypt + Vesta = Настройка
  • Quote

Post by skurudo » Wed Mar 01, 2017 1:37 pm

Да вы, батенька, настоящий шаман! :-)
Top

Metallurg.IT
Posts: 172
Joined: Tue Jan 28, 2014 10:11 am

Re: Let`s Encrypt + Vesta = Настройка
  • Quote

Post by Metallurg.IT » Thu Mar 02, 2017 10:22 am

skurudo wrote:Да вы, батенька, настоящий шаман! :-)
Выцепил из-за чего не работало, логотип вставлялся в шапку с сылкой на этот сайт.
Top


Post Reply
  • Print view

19 posts
  • Previous
  • 1
  • 2

Return to “Общие вопросы”



  • 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