XFileSharing Pro - Have installed Nginx - I have a few questions

Message
Author
GMC
Posts: 172
Joined: Aug 15, 2009 4:48 am

Have installed Nginx - I have a few questions

#1 Postby GMC » Jan 04, 2010 7:51 am

1. I searched and saw this

PilgrimX182 wrote:As far as I remember NGinx totally cache upload stream so we can't trace upload progress behind the nginx.
Try to handle upload stream with Apache, and use NGinx for downloads only.

How is this done? sounds interesting

2. I get a 403 error - which I assume is a .htaccess problem. Does anyone know what I need to change to make this work

3. I guess the answer to 1. may help with this question, but anyway

Does the file servers also have to run nginx if the main site runs it?


Cheers

GMC

GMC
Posts: 172
Joined: Aug 15, 2009 4:48 am

#2 Postby GMC » Jan 06, 2010 5:41 am

bump

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

#3 Postby ankurs » Jan 06, 2010 6:50 am

GMC wrote:bump


as far as i know; ngnix is not supported , unless you buy custom mod

admin
Site Admin
Posts: 1805
Joined: Mar 22, 2006 12:32 pm

#4 Postby admin » Jan 06, 2010 8:11 am

ankurs wrote:as far as i know; ngnix is not supported , unless you buy custom mod


Well,

xfilesharing will run on nginx without a problem, but without progress bar (because of caching).

As for "custom nginx mod" you're talking about - it's a bit different thing (download speed control, etc). And when doing this mod - we're starting main site on apache and downloads through nginx. OR everything on nginx, but progress bar (all uploads) - via apache.

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

#5 Postby ankurs » Jan 06, 2010 8:47 am

admin wrote:
ankurs wrote:as far as i know; ngnix is not supported , unless you buy custom mod


Well,

xfilesharing will run on nginx without a problem, but without progress bar (because of caching).

As for "custom nginx mod" you're talking about - it's a bit different thing (download speed control, etc). And when doing this mod - we're starting main site on apache and downloads through nginx. OR everything on nginx, but progress bar (all uploads) - via apache.

is there going to be progress bar using fcgi ? that would help getting rid of apache altogether

lexie
Posts: 7
Joined: Jan 09, 2010 8:00 am

#6 Postby lexie » Jan 09, 2010 8:02 am

As far as I know, you should install 3rd party nginx module 'upload progress' to make progress bar is working. However, probably there should be some changes in the script code.

GMC
Posts: 172
Joined: Aug 15, 2009 4:48 am

#7 Postby GMC » Jan 09, 2010 11:06 pm

Nginx doesnt work by default

the .htaccess files are detailed and complicated so when you turn nginx on you get 403 access errors

If nginx is supported is there converted files for use with nginx rewrite rules?

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm

#8 Postby PilgrimX182 » Jan 11, 2010 11:33 am

It's too complicated now and we're not interested in investing our time into this way now since most users are under apache only.

lexie
Posts: 7
Joined: Jan 09, 2010 8:00 am

#9 Postby lexie » Jan 12, 2010 9:08 pm

GMC wrote:Nginx doesnt work by default

the .htaccess files are detailed and complicated so when you turn nginx on you get 403 access errors

If nginx is supported is there converted files for use with nginx rewrite rules?

Converting .htaccess to nginx rewrite rules is the easiest thing.

GMC
Posts: 172
Joined: Aug 15, 2009 4:48 am

#10 Postby GMC » Jan 17, 2010 5:50 am

lexie wrote:
GMC wrote:Nginx doesnt work by default

the .htaccess files are detailed and complicated so when you turn nginx on you get 403 access errors

If nginx is supported is there converted files for use with nginx rewrite rules?

Converting .htaccess to nginx rewrite rules is the easiest thing.
care to share the Xfileshare Pro one with us?

lexie
Posts: 7
Joined: Jan 09, 2010 8:00 am

#11 Postby lexie » Jan 19, 2010 10:46 am

GMC wrote:Converting .htaccess to nginx rewrite rules is the easiest thing.
care to share the Xfileshare Pro one with us?[/quote]

Code: Select all

rewrite ^/free([0-9]+)\.html$ /cgi-bin/index.cgi?op=registration&aff_id=$1 last;
rewrite ^/(checkfiles|contact|login|links)\.html$ /cgi-bin/index.cgi?op=$1 last;
rewrite ^/premium\.html$ /cgi-bin/index.cgi?op=payments last;

rewrite ^/catalogue(.*)\.html$ /cgi-bin/index.cgi?op=catalogue&date=$1 last;
rewrite ^/news([0-9]*)\.html$ /cgi-bin/index.cgi?op=news&page=$1 last;
rewrite ^/n([0-9]+)-.*\.html$ /cgi-bin/index.cgi?op=news_details&news_id=$1 last;
rewrite ^/(faq|tos)\.html$ /cgi-bin/index.cgi?op=page&tmpl=$1 last;
rewrite "^/(?!tmp/)([0-9A-Za-z]{12})(\/.+|\.html?|$)" /cgi-bin/index.cgi?op=download1&id=$1&fname=$2 last;
rewrite "^/users/([0-9A-Za-z\-_]{4,64})/?([0-9]+|$)" /cgi-bin/index.cgi?op=user_public&usr_login=$1&fld_id=$2 last;
rewrite ^/pages/([a-z0-9\-\_]+).html /cgi-bin/index.cgi?op=page&tmpl=$1 last;

location / {
  rewrite ^ /cgi-bin/index.cgi last;
}

[/code]

I have configured to work progress too. The problem is that there should be modified upload.cgi file. So, if get these modifications that sibsoft provides for nginx I think it would be possible to get it work without apache at all.
On local computer I configured nginx/0.8.32+spawn-fcgi+fcgiwrap

sherayusuf3
Posts: 94
Joined: Jan 18, 2009 4:29 am

#12 Postby sherayusuf3 » Jan 25, 2010 5:24 am

how about NginxHttpUploadProgressModule ?
Has anyone tried NginxHttpUploadProgressModule?

ref:
http://wiki.nginx.org/NginxHttpUploadProgressModule


Return to “XFileSharing Pro”



Who is online

Users browsing this forum: No registered users and 0 guests