# REDIRECT HTTP to httpsserver {listen 80; server_name www.domain.com; Rewrite ^ (. *) $ https://$server _name$1 permanent;} server {Listen 443; server_name www.domain.com; SSL on; SSL_CERTIFICATE/DATA/NGINX/1_WWW.DOMAIN.COM_BUNDLE.CRT; Ssl_certificate_key/data/nginx/2_www.domain.com.key; Ssl_session_timeout 5m; Ssl_protocols TLSv1 TLSv1.1 TLSv1.2; Ssl_ciphers Ecdhe-rsa-aes256-gcm-sha384:ecdhe-rsa-aes128-gcm-sha256:dhe-rsa-aes256-gcm-sha384:ecdhe-rsa-aes2 56-sha384:ecdhe-rsa-aes128-sha256:ecdhe-rsa-aes256-sha:ecdhe-rsa-aes128-sha:dhe-rsa-aes256-sha:d He-rsa-aes128-sha; Ssl_session_cache shared:ssl:50m; Ssl_prefer_server_ciphers on; root/data/www; Location/{index index.php index.html; Try_files $uri $uri//index.php;
# TP URL Redirection if (!-e $request _filename) {rewrite ^ (. *) $/index.php?s=/$1 last; Break }} Location ~ \.php$ {Fastcgi_pass unix:/run/php/php7.1-fpm.sock; Fastcgi_index index.php; Fastcgi_param path_translated $document _root$fastcgi_path_info; Include Fastcgi_params; Fastcgi_param script_filename $document _root$fastcgi_script_name; Fastcgi_param script_name $fastcgi _script_name; } Error_log/data/log/error.log; Access_log/data/log/access.log;}
Ubuntu Configuration HTTPS