Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- location /phpMyAdmin {
- root /usr/share/;
- index index.php index.html index.htm;
- location ~ ^/phpMyAdmin/(.+\.php)$ {
- try_files $uri =404;
- root /usr/share/;
- fastcgi_pass unix:/var/lib/php/php-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include /etc/nginx/fastcgi_params;
- }
- location ~* ^/phpMyAdmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
- root /usr/share/;
- }
- }
- location /phpmyadmin {
- rewrite ^/* /phpMyAdmin last;
- }
- location /pgadmin {
- proxy_pass http://127.0.0.1:8080/;
- proxy_redirect off;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Script-Name /pgadmin;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment