Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name adminer;
- index adminer-3.3.3.php;
- set $root_path '/usr/share/webapps/adminer';
- root $root_path;
- try_files $uri $uri/ @rewrite;
- location @rewrite {
- rewrite ^/(.*)$ /index.php?_url=/$1;
- }
- location ~ \.php {
- fastcgi_pass unix:/run/php5-fpm.sock;
- fastcgi_index /adminer-3.3.3.php;
- include /etc/nginx/fastcgi_params;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
- root $root_path;
- }
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement