Skip to content

Instantly share code, notes, and snippets.

@tkhn
Created September 27, 2013 13:41
Show Gist options
  • Select an option

  • Save tkhn/6728751 to your computer and use it in GitHub Desktop.

Select an option

Save tkhn/6728751 to your computer and use it in GitHub Desktop.
nginx phpmyadmin conf
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