please help me to set vhost on my nginx:
this is my vhost:
Code: Select all
server {
#          error_log /var/log/nginx/vhost-error_log warn;
          listen 46.105.145.53;
          server_name iperupload.com www.iperupload.com 46.105.145.53;
          root /home/iperupload/public_html;
          location / {
#          report_uploads iper;
#	  proxy_cache news;
#          proxy_cache_valid  200 302  60m;
#          proxy_cache_valid  404      1m;
          add_header Cache-Control "private, max-age=604800";
	  limit_req   zone=req  burst=25;          
	  if ($request_method !~ ^(GET|HEAD|POST)$ ) { return 444; }
          if ($http_user_agent ~ (LWP::Simple|BBBike|Purebot|Lipperhey|libwww-perl|Mail.Ru|wget|curl|Nmap) ) { return 444; }
          if ($http_user_agent = "") { return 444; }
          location ~.*\.(3gp|gif|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso)$ {
          add_header Cache-Control "private, max-age=604800";
#          report_uploads iper;
          expires 1d;
          try_files $uri @backend;
#          track_uploads iper 30s;
          }
          error_page 405 = @backend;
          add_header X-Cache "HIT from Backend";
          proxy_pass http://46.105.145.53:8081;
          include proxy.inc;
          }
          location @backend {
#          report_uploads iper;
#          proxy_cache news;
#          proxy_cache_valid  200 302  60m;
#          proxy_cache_valid  404      1m;
          add_header Cache-Control "private, max-age=604800";
          if ($request_method !~ ^(GET|HEAD|POST)$ ) { return 444; }
          if ($http_user_agent ~ (LWP::Simple|BBBike|Purebot|Lipperhey|libwww-perl|Mail.Ru|wget|curl|Nmap) ) { return 444; }
          if ($http_user_agent = "") { return 444; }
          limit_req   zone=req  burst=20;
          internal;
          proxy_pass http://46.105.145.53:8081;
          include proxy.inc;
#          track_uploads iper 30s;
          }
          location ~ .*\.(php|jsp|cgi|pl|py)?$ {
          report_uploads iper;
          if ($request_method !~ ^(GET|HEAD|POST)$ ) { return 444; }
          if ($http_user_agent ~ (LWP::Simple|BBBike|Purebot|Lipperhey|libwww-perl|Mail.Ru|wget|curl|Nmap) ) { return 444; }
          if ($http_user_agent = "") { return 444; }
          limit_req   zone=req  burst=20;
          proxy_pass http://46.105.145.53:8081;
          include proxy.inc;
#          track_uploads iper 30s;
	  }
          location ~ /\.ht {
          deny all;
          }
        }
progress bar dont work
login dont work fine
please where is the problem on my vhost!
and if you give me a standard vhost file please!
thanks!

 Facebook
 Facebook Twitter
 Twitter