Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.60 KB | None | 0 0
  1. include sites-available/rockethouse.rktstaging.com/before/*; # Managed by SpinupWP
  2.  
  3. server {
  4.     listen 443 ssl http2; # Managed by SpinupWP
  5.     listen [::]:443 ssl http2; # Managed by SpinupWP
  6.  
  7.     server_name rockethouse.rktstaging.com; # Managed by SpinupWP
  8.  
  9.     ssl_certificate /etc/letsencrypt/live/rockethouse.rktstaging.com/fullchain.pem; # Managed by SpinupWP
  10.     ssl_certificate_key /etc/letsencrypt/live/rockethouse.rktstaging.com/privkey.pem; # Managed by SpinupWP
  11.  
  12.     root /sites/rockethouse.rktstaging.com/files/;
  13.  
  14.     index index.html index.php;
  15.  
  16.     access_log /sites/rockethouse.rktstaging.com/logs/access.log;
  17.     error_log /sites/rockethouse.rktstaging.com/logs/error.log;
  18.  
  19.     # Don't allow pages to be rendered in an iframe on external domains.
  20.     add_header X-Frame-Options "SAMEORIGIN";
  21.  
  22.     # MIME sniffing prevention
  23.     add_header X-Content-Type-Options "nosniff";
  24.  
  25.     # Enable cross-site scripting filter in supported browsers.
  26.     add_header X-Xss-Protection "1; mode=block";
  27.  
  28.     include sites-available/rockethouse.rktstaging.com/server/*; # Managed by SpinupWP
  29.  
  30.     # Prevent access to hidden files
  31.     location ~* /\.(?!well-known\/) {
  32.         deny all;
  33.     }
  34.  
  35.     # Prevent access to certain file extensions
  36.     location ~\.(ini|log|conf)$ {
  37.         deny all;
  38.     }
  39.  
  40.     location / {
  41.         try_files $uri $uri/ /index.php?$args;
  42.     }
  43.  
  44.     location ~ \.php$ {
  45.         try_files $uri =404;
  46.  
  47.         include fastcgi.conf;
  48.         fastcgi_pass unix:/run/php/php7.3-rockethouse.sock;
  49.  
  50.         include sites-available/rockethouse.rktstaging.com/location/*; # Managed by SpinupWP
  51.     }
  52. }
  53.  
  54. include sites-available/rockethouse.rktstaging.com/after/*; # Managed by SpinupWP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement