Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server
- {
- listen 127.0.0.1 default;
- server_name .domain.com;
- access_log off;
- #access_log /var/log/nginx/domain.com.access.log;
- error_log /var/log/nginx/domain.com.error.log;
- root /var/www/domain.com/html;
- expires 0;
- index index.php index.html index.htm;
- client_max_body_size 300M;
- #client_body_buffer_size 128k;
- location / {
- # proxy to upstream server
- proxy_pass http://127.0.0.1;
- proxy_redirect default;
- try_files $uri $uri/ /index.php;
- # down page
- if (-f $document_root/down.html) {
- return 503;
- }
- # track uploads in the 'proxied' zone
- # remember connections for 30s after they finished
- track_uploads proxied 30s;
- }
- location ^~ /progress {
- # report uploads tracked in the 'proxied' zone
- report_uploads proxied;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement