RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
Have installed Nginx - I have a few questions

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
GMC



Joined: 15 Aug 2009
Posts: 159

PostPosted: Jan 04, 2010 7:51 am    Post subject: Have installed Nginx - I have a few questions Reply with quote

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
Back to top
View user's profile Send private message
GMC



Joined: 15 Aug 2009
Posts: 159

PostPosted: Jan 06, 2010 5:41 am    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
ankurs



Joined: 10 Mar 2009
Posts: 515

PostPosted: Jan 06, 2010 6:50 am    Post subject: Reply with quote

GMC wrote:
bump


as far as i know; ngnix is not supported , unless you buy custom mod
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 22 Mar 2006
Posts: 1126

PostPosted: Jan 06, 2010 8:11 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
ankurs



Joined: 10 Mar 2009
Posts: 515

PostPosted: Jan 06, 2010 8:47 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
lexie



Joined: 09 Jan 2010
Posts: 6

PostPosted: Jan 09, 2010 8:02 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
GMC



Joined: 15 Aug 2009
Posts: 159

PostPosted: Jan 09, 2010 11:06 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2109
Location: UFO Lab

PostPosted: Jan 11, 2010 11:33 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
lexie



Joined: 09 Jan 2010
Posts: 6

PostPosted: Jan 12, 2010 9:08 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
GMC



Joined: 15 Aug 2009
Posts: 159

PostPosted: Jan 17, 2010 5:50 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
lexie



Joined: 09 Jan 2010
Posts: 6

PostPosted: Jan 19, 2010 10:46 am    Post subject: Reply with quote

GMC wrote:

Converting .htaccess to nginx rewrite rules is the easiest thing.
care to share the Xfileshare Pro one with us?[/quote]
Code:
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
Back to top
View user's profile Send private message
sherayusuf3



Joined: 18 Jan 2009
Posts: 88
Location: Jakarta Indonesia

PostPosted: Jan 25, 2010 5:24 am    Post subject: Reply with quote

how about NginxHttpUploadProgressModule ?
Has anyone tried NginxHttpUploadProgressModule?

ref:
http://wiki.nginx.org/NginxHttpUploadProgressModule
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group