Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you provide a ngnix config demo #23

Open
JayMiao opened this issue May 30, 2016 · 2 comments
Open

Could you provide a ngnix config demo #23

JayMiao opened this issue May 30, 2016 · 2 comments

Comments

@JayMiao
Copy link

JayMiao commented May 30, 2016

Excuse my newbie. I've use this monitor under the ngnix config.
`server {
listen 80;
server_name supervisord.add.net;
root /home/q/server/supervisord-monitor/public_html;
index index.php;

location = /ENV {
    allow 127.0.0.1;
    deny all;
}

location ~* \.php$ {
    include fastcgi.conf;
    include include/supervisord.add.net/env.conf;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
}

}`

But, when I choose to stop/start a progress. The got a ngnix error code : 404
Could you please provide a ngnix config file demo for you project ? THANKS

@mlazarov
Copy link
Owner

To work supervisord-monitor requires one additional location directive. This is how your vhost will look after adding it:

location = /ENV {
    allow 127.0.0.1;
    deny all;
}

location / {
    try_files $uri $uri/ /index.php;
 }

location ~* \.php$ {
    include fastcgi.conf;
    include include/supervisord.add.net/env.conf;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
}

@JayMiao
Copy link
Author

JayMiao commented May 30, 2016

Yeah ! I just resolve the 404 problem according to Ngnix Official Doc.
I find the project written in CI framework.
Could you please put the link CI ngnix in your README.md ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants