The idea is to make install guides and better descriptive files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default 990B

1234567891011121314151617181920212223242526272829303132
  1. server {
  2. root /var/www;
  3. index index.php index.html index.htm;
  4. server_name put.your.domain.here;
  5. location / {
  6. try_files $uri $uri/ =404;}
  7. location ~ \.php$ {
  8. include snippets/fastcgi-php.conf;
  9. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;}
  10. location ~ /\.ht {
  11. deny all;}
  12. listen [::]:443 ssl ipv6only=on; # managed by Certbot
  13. listen 443 ssl; # managed by Certbot
  14. ssl_certificate /etc/letsencrypt/live/put.your.domain.here/fullchain.pem; # managed by Certbot
  15. ssl_certificate_key /etc/letsencrypt/live/put.your.domain.here/privkey.pem; # managed by Certbot
  16. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  17. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  18. }
  19. server {
  20. if ($host = put.your.domain.here) {
  21. return 301 https://$host$request_uri;
  22. } # managed by Certbot
  23. listen 80 default_server;
  24. listen [::]:80 default_server;
  25. server_name put.your.domain.here;
  26. return 404; # managed by Certbot
  27. }