Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name _;
- root /var/www/default;
- index index.php;
- client_max_body_size 100M;
- fastcgi_read_timeout 1800;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires max;
- log_not_found off;
- access_log off;
- }
- location ~ \.php$ {
- try_files $uri =404;
- include fastcgi_params;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass php:9000;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement