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
Nginx and XFileSharing

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
catalaur



Joined: 20 Jul 2010
Posts: 9

PostPosted: Aug 26, 2010 11:26 am    Post subject: Nginx and XFileSharing Reply with quote

Hello,

I tryed to make the script working on nginx.
Until now I managed to get fastcgi work, and some of the rewrite rules.

2 problems that I couldn't solve are:

- can't download, I get "Error happened when generating Download Link.
Please try again or Contact administrator. "
I can think of two possible reasons: fastcgi lacks permissions (it can't create symlinks?) or I messed up nginx rewrite rules most likely

- can't upload same error, but that isn't important right now, I will pass uploads trought apache anyway after figure out the first problem

I know that there is a mod for nginx that works with xfilesharing, but it is expensive so I preffer to make it by myself , any help is appreciated.

Nginx conf:


rewrite "^/([0-9A-Za-z]{12})-del-([0-9A-Za-z]+)/.+$" /cgi-bin/index.cgi?del=$1-$2 last;
rewrite "^/([0-9A-Za-z\-_]*)/?([0-9A-Za-z]{12})(/[^\/]*|)(\.html?|$)$" /cgi-bin/index.cgi?op=download1&usr_login=$1$
rewrite ^/([0-9A-Za-z\-_]+)(/[0-9a-z\-_]*/?|$)$ /cgi-bin/index.cgi?op=user_public&usr_login=$
rewrite ^/([a-z0-9\-\_]+)\.html(.*)$ /cgi-bin/index.cgi?op=page&tmpl=$1$2 last;

location / {
root /etc/nginx/html;
index index.html index.htm;
rewrite ^ /cgi-bin/index.cgi last;
}

location ~ ^/images/(.*)$ {
alias /etc/nginx/html/images/$1;
}

location ~ ^/captchas/(.*)$ {
alias /etc/nginx/html/captchas/$1;
}

location /main.css {
alias /etc/nginx/html/main.css;
}

location ~ ^/cgi-bin/.*\.cgi$ {
root /etc/nginx/cgi-bin;
gzip off;
include fastcgi_params;
fastcgi_pass 127.0.0.1:8999;
fastcgi_index index.cgi;
fastcgi_param SCRIPT_FILENAME /etc/nginx$fastcgi_script_name;
}
Back to top
View user's profile Send private message
sherayusuf3



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

PostPosted: Sep 01, 2010 1:56 pm    Post subject: Reply with quote

I dont know how to convert .htaccess from apache to rewrite rules nginx
sory
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    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