XFileSharing Pro - vhost nginx

Message
Author
iperupload
Posts: 4
Joined: Jan 03, 2013 3:14 pm

vhost nginx

#1 Postby iperupload » Jan 19, 2013 2:15 am

hello!

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;
          }
        }

now i have some error:

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!

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#2 Postby ankurs » Jan 19, 2013 1:41 pm

progress bar will not work with nginx

iperupload
Posts: 4
Joined: Jan 03, 2013 3:14 pm

#3 Postby iperupload » Jan 19, 2013 2:49 pm

well.. how to solve?

chrda
Posts: 296
Joined: Sep 14, 2009 7:16 pm

#4 Postby chrda » Jan 19, 2013 9:39 pm

Follow the install instructions and use apache or litespeed