Advertisement
METAJIJI

pma.metajiji.tk

Mar 8th, 2015
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.79 KB | None | 0 0
  1. # cat /etc/nginx/sites-available/pma.metajiji.tk_https.conf
  2.  
  3. # Include www-php upstream.
  4. include upstreams/php-www.conf;
  5.  
  6. server {
  7.     listen 80;
  8.     server_name pma.beevoip.it;
  9.     root /usr/share/phpmyadmin/;
  10.  
  11.  
  12. # Logs
  13.     access_log /var/log/nginx/pma.beevoip.it_http_access.log;
  14.     error_log /var/log/nginx/pma.beevoip.it_http_error.log;
  15.  
  16.  
  17. # Includes
  18.     include common_config/security.conf;
  19.  
  20.  
  21. # Options
  22.     index index.html index.htm;
  23.     try_files $uri $uri/ =404;
  24.  
  25.  
  26. # Locations
  27.     location ~ /\.(ht|hg|git|svn) { deny all; }
  28.     location / {
  29.         index index.php;
  30.         error_page 403 404 502 503 504 /usr/share/nginx/www/50x.html;
  31.  
  32.         location ~ \.php$ {
  33.             try_files $uri =404;
  34.             include fastcgi_params;
  35.             fastcgi_pass php-www;
  36.             fastcgi_index index.php;
  37. #           fastcgi_intercept_errors on;
  38.         }
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement