daily pastebin goal
45%
SHARE
TWEET

lalala

a guest Mar 26th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     # leverage browser caching
  3.     #browser caching of static assets
  4.     location ~*  \.(jpg|jpeg|png|gif|ico|css|js|ttf)$ {
  5.         expires 7d;
  6.     }
  7.  
  8.     root /var/www/html/public;
  9.     index index.html index.htm index.php;
  10.  
  11.     # Make site accessible from http://set-ip-address.xip.io
  12.     server_name fgbmfi.dev;
  13.  
  14.     access_log /var/log/nginx/web-access.log;
  15.     error_log  /var/log/nginx/web-error.log error;
  16.  
  17.     charset utf-8;
  18.  
  19.     sendfile off;
  20.  
  21.     client_max_body_size 100m;
  22.  
  23.     location / {
  24.         try_files $uri $uri/ /index.html /index.php?$query_string;
  25.     }
  26.  
  27.     location = /favicon.ico { log_not_found off; access_log off; }
  28.     location = /robots.txt  { access_log off; log_not_found off; }
  29.  
  30.     error_page 404 /index.php;
  31.  
  32.     # pass the PHP scripts to php5-fpm
  33.     # Note: \.php$ is susceptible to file upload attacks
  34.     # Consider using: "location ~ ^/(index|app|app_dev|config)\.php(/|$) {"
  35.     location ~ \.php$ {
  36.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  37.         # With php5-fpm:
  38.         fastcgi_pass app:9000;
  39.         fastcgi_index index.php;
  40.         include fastcgi_params;
  41.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  42.         fastcgi_param LARA_ENV local; # Environment variable for Laravel
  43.         fastcgi_param HTTPS off;
  44.     }
  45.  
  46.     # Deny .htaccess file access
  47.     location ~ /\.ht {
  48.         deny all;
  49.     }
  50. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top