Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name glamourbrand.in www.glamourbrand.in;
- charset utf-8;
- index index.php index.html index.htm;
- set $root /home/centos/html;
- root $root;
- location /conntrack {
- stub_status on;
- }
- location ^~ /.well-known/acme-challenge/ {
- default_type "text/plain";
- root /tmp;
- }
- add_header X-Frame-Options "SAMEORIGIN";
- add_header X-Content-Type-Options nosniff;
- add_header X-XSS-Protection "1; mode=block";
- location / {
- include origin.conf;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- fastcgi_param GEOIP_COUNTRY_CODE $geoip_country_code;
- }
- location ~* ^/(css|img|js)/(.+)$ {
- include origin.conf;
- root $root;
- }
- location ~* \.(png|jpg|ico|js|css)$ {
- include origin.conf;
- root $root;
- }
- location ~* ^/\.(ini|conf)$ {
- return 404;
- }
- location /var {
- return 404;
- }
- location ~ /\.ht {
- return 404;
- }
- include phpstatus.conf;
- listen 443 ssl; # managed by Certbot
- ssl_certificate /etc/letsencrypt/live/glamourbrand.in/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/glamourbrand.in/privkey.pem; # managed by Certbot
- include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
- ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
- }
- server {
- if ($host = glamourbrand.in ) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
- if ($host = www.glamourbrand.in ) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
- listen 80;
- server_name glamourbrand.in www.glamourbrand.in;
- return 404; # managed by Certbot
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement