Advertisement
tsotnep1

default

Jun 29th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server ipv6only=on;
  4. server_name tsotnep.com www.tsotnep.com;
  5. return 301 https://$server_name$request_uri;
  6. }
  7.  
  8. server {
  9. # SSL configuration
  10. listen 443 ssl http2 default_server;
  11. listen [::]:443 ssl http2 default_server;
  12. include snippets/ssl-tsotnep.com.conf;
  13. include snippets/ssl-params.conf;
  14.  
  15. server_name tsotnep.com www.tsotnep.com;
  16.  
  17.  
  18. root /var/www/html;
  19. index index.html index.htm;
  20.  
  21.  
  22. location / {
  23. try_files $uri $uri/ =404;
  24. }
  25.  
  26. error_page 404 /404.html;
  27. error_page 500 502 503 504 /50x.html;
  28. location = /50x.html {
  29. root /usr/share/nginx/html;
  30. }
  31. location ~ \.php$ {
  32. try_files $uri =404;
  33. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  34. fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  35. fastcgi_index index.php;
  36. include fastcgi.conf;
  37. }
  38.  
  39. location ~ /.well-known {
  40. allow all;
  41. }
  42. }
  43. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement