Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [cut]server {
- listen 80;
- listen [::]:80 ipv6only=on;
- server_name $host;
- index index.html index.php;
- root /var/www/$host;
- error_page 404 /404.html;
- location / {
- try_files $uri $uri/ =404;
- }
- location ~ \.php$ {
- try_files $uri $uri/ = 404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_cache fastcgi_cache;
- fastcgi_cache_valid 200 301 302 30s;
- fastcgi_cache_use_stale updating error timeout invalid_header http_500;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement