Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- root /usr/share/nginx/www;
- index index.php index.html index.htm;
- try_files $uri $uri/ /index.php;
- server_name localhost;
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location ~ /\. {
- deny all;
- access_log off;
- log_not_found off;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico) {
- expires 24h;
- log_not_found off;
- }
- location / {
- root /usr/share/nginx/www/wordpress;
- location ~ \.php$ {
- include fastcgi_params;
- fastcgi_pass unix:/tmp/php5-fpm.sock;
- fastcgi_index index.php;
- }
- }
- location /pma {
- root /usr/share/nginx/www/phpmyadmin;
- location ~ \.php$ {
- include fastcgi_params;
- fastcgi_pass unix:/tmp/php5-fpm.sock;
- fastcgi_index index.php;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement