| View previous topic :: View next topic |
| Author |
Message |
GMC
Joined: 15 Aug 2009 Posts: 159
|
Posted: Jan 04, 2010 7:51 am Post subject: Have installed Nginx - I have a few questions |
|
|
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 |
|
 |
GMC
Joined: 15 Aug 2009 Posts: 159
|
Posted: Jan 06, 2010 5:41 am Post subject: |
|
|
| bump |
|
| Back to top |
|
 |
ankurs
Joined: 10 Mar 2009 Posts: 515
|
Posted: Jan 06, 2010 6:50 am Post subject: |
|
|
as far as i know; ngnix is not supported , unless you buy custom mod |
|
| Back to top |
|
 |
admin Site Admin

Joined: 22 Mar 2006 Posts: 1126
|
Posted: Jan 06, 2010 8:11 am Post subject: |
|
|
| 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 |
|
 |
ankurs
Joined: 10 Mar 2009 Posts: 515
|
Posted: Jan 06, 2010 8:47 am Post subject: |
|
|
| 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 |
|
 |
lexie
Joined: 09 Jan 2010 Posts: 6
|
Posted: Jan 09, 2010 8:02 am Post subject: |
|
|
| 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 |
|
 |
GMC
Joined: 15 Aug 2009 Posts: 159
|
Posted: Jan 09, 2010 11:06 pm Post subject: |
|
|
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 |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Jan 11, 2010 11:33 am Post subject: |
|
|
| 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 |
|
 |
lexie
Joined: 09 Jan 2010 Posts: 6
|
Posted: Jan 12, 2010 9:08 pm Post subject: |
|
|
| 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 |
|
 |
GMC
Joined: 15 Aug 2009 Posts: 159
|
Posted: Jan 17, 2010 5:50 am Post subject: |
|
|
| 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 |
|
 |
lexie
Joined: 09 Jan 2010 Posts: 6
|
Posted: Jan 19, 2010 10:46 am Post subject: |
|
|
| 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 |
|
 |
sherayusuf3
Joined: 18 Jan 2009 Posts: 88 Location: Jakarta Indonesia
|
|
| Back to top |
|
 |
|