Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name advancedprogramms.com bm.advancedprogramms.com;
- return 301 https://$host$request_uri;
- }
- server {
- listen 80;
- listen [::]:80;
- root /srv/$http_host;
- index index.php index.html index.htm;
- server_name *.advancedprogramms.com advancedprograms.ru *.advancedprograms.ru advancedprogramms.ru *.advancedprogramms.ru;
- location / {
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ =404;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- # With php7.0-fpm:
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- }
- client_max_body_size 64m;
- }
- server {
- listen 443 ssl;
- listen [::]:443 ssl;
- server_name advancedprogramms.com bm.advancedprogramms.com;
- root /srv/$http_host;
- index index.php index.html index.htm;
- keepalive_timeout 60;
- ssl_certificate /etc/letsencrypt/live/advancedprogramms.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/advancedprogramms.com/privkey.pem;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers "HIGH:!RC4:!aNULL:!MD5:!kEDH";
- add_header Strict-Transport-Security 'max-age=604800';
- location / {
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ =404;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- # With php7.0-fpm:
- fastcgi_param HTTPS on;
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- }
- client_max_body_size 64m;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement