View previous topic :: View next topic |
Author |
Message |
tczaude n00b
Joined: 26 Oct 2012 Posts: 49 Location: Bielsko-Biała
|
Posted: Sat May 04, 2013 12:03 am Post subject: Moosefs and cgi |
|
|
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 |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Sat May 04, 2013 11:40 am Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21691
|
Posted: Sat May 04, 2013 4:49 pm Post subject: |
|
|
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 |
|
|
tczaude n00b
Joined: 26 Oct 2012 Posts: 49 Location: Bielsko-Biała
|
Posted: Sat May 04, 2013 5:31 pm Post subject: |
|
|
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 |
|
|
|