...
2. Edit file:
Code Block | ||
---|---|---|
| ||
/usr/local/kbkp-software/apps/b-nginx/usr/local/conf/port-80etc/nginx/conf.d/main.conf |
Code Block | ||
---|---|---|
| ||
# vinano /usr/local/kbkp-software/apps/b-nginx/usr/local/conf/port-80etc/nginx/conf.d/main.conf |
- Change Change server_name to domain name that you have issued certificate for.
- Save changes
3. Replace file contents:
Code Block | ||
---|---|---|
| ||
/etc/nginx/ssl/bytecp_client.crt |
With crt file you've received from your SSL issuer.
...
- Change "listen 80;" to "listen 443;"
- Add line "ssl on;"
- Provide path to your certificate and private key files like:
ssl on;
ssl_certificate /etc/ssl/your_domain_name.pem; (or bundle.crt)
ssl_certificate_key /etc/ssl/your_domain_name.key; - Save changes
3. Edit file: /etc/nginx/locations/hostbill.conf
Code Block | ||
---|---|---|
| ||
# nano /etc/nginx/ssl/bytecp_client.key |
With certificate private key file that you've received from your SSL issuer.
...
locations/hostbill.conf |
Below line "fastcgi_pass 127.0.0.1:9000;" paste:
fastcgi_param HTTPS 'on';
4.. Restart webserver & php-fpm:
Code Block | ||
---|---|---|
| ||
/usr/local/kbkp-software/apps/b-nginx/etc/init.d/nginxservice nginx restart && service php-fpm restart |