Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Moosefs and cgi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tczaude
n00b
n00b


Joined: 26 Oct 2012
Posts: 49
Location: Bielsko-Biała

PostPosted: Sat May 04, 2013 12:03 am    Post subject: Moosefs and cgi Reply with quote

Hi
I have problem with msfcgi

Somebody know how can make config with nginx on localhost. All time i recive bad gatway or nothing. I try make proxy for native init process and second option i make in root for nginx in /usr/share/msfcgi with thhtpd .

First and second don't working and i can't find whats wrong :(

BestRegards
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sat May 04, 2013 11:40 am    Post subject: Reply with quote

Don't take it as a personal attack but it is hard to understand clearly what your issue is and what you tried to do to fix it. I guess English is not your mother tongue and I'd like to kindly suggest you wrote your issue in your mother tongue in your initial post so that users here can clearly figure out what it's all about — a forum moderator will eventually move your message to the appropriate forum/thread. Also make sure to check there's a sub forum in your favourite language. You might want to ask the question there.

As for your issue (I assume you're talking about mfscgiserv, right?) I don't have the answer (I have no experience with nginx) but the 502 error typically means nginx cannot hand off to the appropriate CGI engine. Have you checked moosefs CGI server FAQ? This might help you.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21595

PostPosted: Sat May 04, 2013 4:49 pm    Post subject: Reply with quote

tczaude: please post the configuration you used. Interested parties may be able to fix it more readily than they can reconstruct your environment from your description of what should happen.
Back to top
View user's profile Send private message
tczaude
n00b
n00b


Joined: 26 Oct 2012
Posts: 49
Location: Bielsko-Biała

PostPosted: Sat May 04, 2013 5:31 pm    Post subject: Reply with quote

Yes my English is terrible...

But i see only on global forum and Chinese is something about this file system.

I read first this links witch You include in post. Some informations i find but is it for Debian/Squezzy

Yes i talking about mfscgiserv

I make some with config and now have 2 points first point with thtpd

thhtpd
Quote:
dir=/usr/share/mfscgi
user=nginx
logfile=/var/log/thttpd.log
pidfile=/var/run/thttpd.pid
port=8000
cgipat=**.cgi|**.pl



nginx
Quote:
server {
listen 127.0.0.1;
server_name mfs.localhost;

root /usr/share/mfscgi/;

location ~ \.cgi|pl$ {
proxy_pass http://127.0.0.1:8000;
include proxy.conf;

}


nginx proxy
Quote:
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffers 32 4k;


And i retrieve from thttpd this config cgi not found

Second metod i try make config with init.d script from package
I start with this config
Quote:

# MooseFS HTTP/CGI server configuration.

# BIND_HOST: local address to listen on
# default: any
# BIND_HOST="0,0,0,0"

# BIND_PORT: port to listen on
# default: 9425
BIND_PORT=9425



and make proxy from nginx to this port
and i receive bad getaway

second method base on this
http://contrib.meharwal.com/home/moosefs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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