Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 default_server;
- listen [::]:80 default_server ipv6only=on;
- server_name tsotnep.com www.tsotnep.com;
- return 301 https://$server_name$request_uri;
- }
- server {
- # SSL configuration
- listen 443 ssl http2 default_server;
- listen [::]:443 ssl http2 default_server;
- include snippets/ssl-tsotnep.com.conf;
- include snippets/ssl-params.conf;
- server_name tsotnep.com www.tsotnep.com;
- root /var/www/html;
- index index.html index.htm;
- location / {
- try_files $uri $uri/ =404;
- }
- error_page 404 /404.html;
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- }
- location ~ /.well-known {
- allow all;
- }
- }
- ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement