Skip to content

Instantly share code, notes, and snippets.

@itsrachelfish
Created April 16, 2020 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsrachelfish/43eca6119d24438c6df5697d54d01b57 to your computer and use it in GitHub Desktop.
Save itsrachelfish/43eca6119d24438c6df5697d54d01b57 to your computer and use it in GitHub Desktop.
Wetfish forums nginx config
server {
listen 443 ssl;
server_name staging.wetfishonline.com;
ssl_certificate /etc/letsencrypt/live/staging.wetfishonline.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/staging.wetfishonline.com/privkey.pem; # managed by Certbot
ssl_trusted_certificate /etc/letsencrypt/live/staging.wetfishonline.com/chain.pem; # managed by Certbot
ssl_stapling on; # managed by Certbot
ssl_stapling_verify on; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf;
add_header Strict-Transport-Security max-age=15768000;
root /var/www/dev.wetfishonline.com/html;
index index.php index.html index.htm;
location / {
autoindex on;
try_files $uri $uri/ =404;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php/php5.6-fpm.sock;
fastcgi_index index.php;
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment