Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # cat /etc/nginx/sites-available/pma.metajiji.tk_https.conf
- # Include www-php upstream.
- include upstreams/php-www.conf;
- server {
- listen 80;
- server_name pma.beevoip.it;
- root /usr/share/phpmyadmin/;
- # Logs
- access_log /var/log/nginx/pma.beevoip.it_http_access.log;
- error_log /var/log/nginx/pma.beevoip.it_http_error.log;
- # Includes
- include common_config/security.conf;
- # Options
- index index.html index.htm;
- try_files $uri $uri/ =404;
- # Locations
- location ~ /\.(ht|hg|git|svn) { deny all; }
- location / {
- index index.php;
- error_page 403 404 502 503 504 /usr/share/nginx/www/50x.html;
- location ~ \.php$ {
- try_files $uri =404;
- include fastcgi_params;
- fastcgi_pass php-www;
- fastcgi_index index.php;
- # fastcgi_intercept_errors on;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement