Created
September 27, 2013 13:41
-
-
Save tkhn/6728751 to your computer and use it in GitHub Desktop.
nginx phpmyadmin conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name pma.example.com; | |
| access_log /var/log/nginx/pma.example.com.access.log; | |
| error_log /var/log/nginx/pma.example.com.error.log; | |
| root /var/www/phpmyadmin/htdocs; | |
| location / { | |
| index index.php; | |
| } | |
| location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ { | |
| access_log off; | |
| expires 360d; | |
| } | |
| location ~ /\.ht { | |
| deny all; | |
| } | |
| location ~ /(libraries|setup/frames|setup/libs) { | |
| deny all; | |
| return 404; | |
| } | |
| location ~ \.php$ { | |
| include /etc/nginx/fastcgi_params; | |
| fastcgi_pass 127.0.0.1:9007; | |
| fastcgi_index index.php; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment