Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@digiocean home]# nginx -t
- nginx: [emerg] invalid parameter "http2" in /etc/nginx/conf.d/withingscoupon.net.conf:2
- nginx: configuration file /etc/nginx/nginx.conf test failed
- [root@digiocean home]# nginx -v
- nginx version: nginx/1.8.0
- server {
- listen 443 ssl http2;
- server_name www.withingscoupon.net;
- # SSL
- ssl_certificate /etc/letsencrypt/live/withingscoupon.net/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/withingscoupon.net/privkey.pe$
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES$
- rewrite ^(.*) https://withingscoupon.net$1 permanent;
- }
- server {
- listen 80;
- server_name withingscoupon.net www.withingscoupon.net;
- rewrite ^(.*) https://withingscoupon.net$1 permanent;
- }
- server {
- listen 443 ssl http2;
- access_log off;
- # access_log /home//logs/access.log;
- error_log off;
- # error_log /home/withingscoupon.net/logs/error.log;
- root /home/withingscoupon.net/public_html;
- index index.php index.html index.htm;
- server_name withingscoupon.net;
- # SSL
- ssl_certificate /etc/letsencrypt/live/withingscoupon.net/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/withingscoupon.net/privkey.pe$
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES$
- # Improve HTTPS performance with session resumption
- ssl_session_cache shared:SSL:50m;
- ssl_session_timeout 1d;
- # DH parameters
- ssl_dhparam /etc/nginx/cert/dhparam.pem;
- # Enable HSTS (https://developer.mozilla.org/en-US/docs/Security/HTTP_S$
- add_header Strict-Transport-Security "max-age=31536000" always;
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- include /etc/nginx/fastcgi_params;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_connect_timeout 300;
- fastcgi_send_timeout 300;
- fastcgi_read_timeout 300;
- fastcgi_buffer_size 32k;
- fastcgi_buffers 8 16k;
- fastcgi_busy_buffers_size 32k;
- fastcgi_temp_file_write_size 32k;
- fastcgi_intercept_errors on;
- fastcgi_param SCRIPT_FILENAME /home/withingscoupon.net/public_h$
- }
- location ~ /\. {
- deny all;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location ~* \.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pl$
- gzip_static off;
- add_header Pragma public;
- add_header Cache-Control "public, must-revalidate, proxy-revali$
- access_log off;
- expires 30d;
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement