Advertisement
epl70

Nginx config diashow

Jan 1st, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.02 KB | None | 0 0
  1. server {
  2.         listen 80;
  3.         listen [::]:80;
  4.  
  5.  
  6.         # Log files for Debugging
  7.         access_log /var/log/nginx/images-access.log;
  8.         error_log /var/log/nginx/images-error.log;
  9.  
  10.         # Webroot Directory for Laravel project
  11.         root /var/www/images/public;
  12.  
  13.         # Add index.php to the list if you are using PHP
  14.         index index.php index.html index.htm index.nginx-debian.html;
  15.  
  16.         server_name diashow;
  17.  
  18.         location / {
  19.                 # First attempt to serve request as file, then
  20.                 # as directory, then fall back to displaying a 404.
  21.                 try_files $uri $uri/ /index.php?$query_string;
  22.         }
  23.  
  24.         # pass PHP scripts to FastCGI server
  25.         location ~ \.php$ {
  26.                 include snippets/fastcgi-php.conf;
  27.                 # With php-fpm (or other unix sockets):
  28.                 fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  29.                 # With php-cgi (or other tcp sockets):
  30.         #       fastcgi_pass 127.0.0.1:9000;
  31.         }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement