Skip to content

Instantly share code, notes, and snippets.

@shahariaazam
Created February 8, 2015 19:34
Show Gist options
  • Save shahariaazam/7334f495abd440e21674 to your computer and use it in GitHub Desktop.
Save shahariaazam/7334f495abd440e21674 to your computer and use it in GitHub Desktop.
location ~ \.php/?(.*)$ {
fastcgi_connect_timeout 3000s; # default of 60s is just too long
fastcgi_read_timeout 1000s; # default of 60s is just too long
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
#Access phpmyadmin
location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment