Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name www.domain.com domain.com;
- index index.php;
- location / {
- root /usr/share/nginx/html/domain/;
- try_files $uri $uri.html @extensionless-php $uri/ =404;
- }
- location @extensionless-php {
- rewrite ^(.*)$ $1.php last;
- }
- location ~ .php$ {
- fastcgi_buffers 8 256k;
- fastcgi_buffer_size 128k;
- fastcgi_intercept_errors on;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/domain/$fastcgi_script_name;
- fastcgi_pass unix:/dev/shm/php-fpm-www.sock;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement