Welcome! Log In Create A New Profile

Advanced

Re: need help calling PHP as a fallback

January 05, 2010 03:15AM
Oops, sorry about that; I thought you meant to simply add "debug" to the log directive in the .conf.

But! I updated to 0.8.31 and rebuilt with --with-debug (as per your recommendation) and everything works perfectly.

Here's my final nginx.conf if anyone else will want to do something similar in the future.

location /eve/ {
proxy_pass http://127.0.0.1:9001;
proxy_intercept_errors on;
error_page 504 = @fallback;
}

location @fallback {
rewrite ^(.*)$ /backend.php;
}

Kind of a messy rewrite, but for my purposes, it's fine. Thanks for all the help, and happy 2010 =)
Subject Author Posted

need help calling PHP as a fallback

davvv January 04, 2010 11:47PM

Re: need help calling PHP as a fallback

Claude Bing January 05, 2010 12:22AM

Re: need help calling PHP as a fallback

davvv January 05, 2010 12:37AM

Re: need help calling PHP as a fallback

Claude Bing January 05, 2010 12:44AM

Re: need help calling PHP as a fallback

davvv January 05, 2010 12:47AM

Re: need help calling PHP as a fallback

Piotr Sikora January 05, 2010 01:04AM

Re: need help calling PHP as a fallback

davvv January 05, 2010 01:25AM

Re: need help calling PHP as a fallback

Rob Schultz January 05, 2010 01:36AM

Re: need help calling PHP as a fallback

Piotr Sikora January 05, 2010 02:44AM

Re: need help calling PHP as a fallback

davvv January 05, 2010 03:15AM

Re: need help calling PHP as a fallback

edogawaconan January 05, 2010 04:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 253
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready