Nginx and PHP-FPM : 404 errors

I am getting 404 errors on some of the URLs on the site.  A check of the error log revealed:

"/var/www/public_html/dolphin_site/browse.php/index.html" is not found (20: Not a directory)

As one can see, it is appending /index.html to the URL and it is the case for all the 404 errors.  Is this due to the rewrite rules?  I copied the rewrite rules from the Boonex configuration.  Or is this a configuration issue with the Nginx config?  I am a complete noob with Nginx and still have a lot to learn and any help is greatly appreciated.

Geeks, making the world a better place
Quote · 14 Dec 2012

OK, I see that it is affecting my custom menu that is just using anchor tags.  If the URL ends with a php file, then it adds the /index.html file to it.  Otherwise, it does not.  I can go to http://dolphin_site.tld/index.php from the backend but not from the same URL in my custom menu.  So at least I have something to go on now.

I thought there were Nginx/PHP-FPM users here in the forum but I see that I don't get very many answers on Nginx questions.  Is it because I am asking noob questions?  I spend hours searching the internet to try and find the answers first.  The problem is that Nginx does not have the widespread use that Apache has and it is just harder to find the answers and especially so for Dolphin on Nginx.

Geeks, making the world a better place
Quote · 14 Dec 2012

There are a few. The problem is VERY few. So you may get lucky if one of them logs on and reads the forums maybe next week sometime.

It's just not that popular.

I have always been perfectly happy with Apache. So i have never bothered to try.

https://www.deanbassett.com
Quote · 14 Dec 2012

It was a coding error on my part, a trailing slash after the file_name.php.  I guess it did not affect the way Apache handled it (or how Apache saw it) but Nginx was seeing it as a directory request and thus added the /index.html.

Thanks

Geeks, making the world a better place
Quote · 14 Dec 2012

I moved to Nginx and PHP-FPM because since I had to start over with a bare box, I could go with anything.  From what I read, Nginx/PHP-FPM uses a lot less resources which means Dolphin can preform better on VPS or Dedicated that have less of a configuration.  We are on a limited budget and therefore could only lease so much of a configuration at this time.

Geeks, making the world a better place
Quote · 14 Dec 2012

I was also on Nginx and I ran into too many errors etc. I am back on apache. If you have a 1 GB ram on your VPS, you should be OK on a VPS.

Nginx runs really fast, so if someone can help Nginx folks, then I might go back too.

Quote · 14 Dec 2012

Try having 50 users on that 1 gig VPS and you will find Dolphin struggling; I was there, I know.  You need a Hemie to run Dolphin, a four cylinder 90 hp engine just won't cut it.

If you could outline the problems you had with Nginx, I would appreciate the heads up.  I currently have a test site of Dolphin running on Nginx so I would like to run it through the paces to see these problems.

Geeks, making the world a better place
Quote · 15 Dec 2012

The problem is nginx config, if you want, I can help you.

 

I use nginix on my site for a long time and I have no problems without any error. errors come from wrong configuration.

 

If you use nginx + php-fpm + APC also use running very quickly. 

 

Private contact me or post here your site.conf if you wanth share to all your experience.
After installing nginx can also use some small tricks to tuning nginx for better performance

 


Apache should be a part of Internet history and it should be known to everyone but 90% is still bitter to use it.

To use apache means to spend 10 times more money on servers

Nginx is at least 10 times safer, faster and easier to use.

 


My version of nginx is custom and can not be used by users of dolphin, my site is also more complex, so I can not add here my configuration.

waiting for your reply

brunno
Quote · 16 Dec 2012

 

The problem is nginx config, if you want, I can help you.

 

I use nginix on my site for a long time and I have no problems without any error. errors come from wrong configuration.

 

If you use nginx + php-fpm + APC also use running very quickly. 

 

Private contact me or post here your site.conf if you wanth share to all your experience.
After installing nginx can also use some small tricks to tuning nginx for better performance

 


Apache should be a part of Internet history and it should be known to everyone but 90% is still bitter to use it.

To use apache means to spend 10 times more money on servers

Nginx is at least 10 times safer, faster and easier to use.

 


My version of nginx is custom and can not be used by users of dolphin, my site is also more complex, so I can not add here my configuration.

waiting for your reply

Thanks for your offer of help.  I am in the process of moving the production site to the dedicated server.  I will certainly appreciate any help with setting up the config for Nginx.  So far the test site is not showing any errors although a third party module did issue me a warning that did not happen on the current site running on Apache.  I am very new, as in only a week or so, to Nginx and so have much to learn about how to optimise it.  Will contact you soon by PM

Geeks, making the world a better place
Quote · 16 Dec 2012

Setup nginx + php-fpm + APC

http://www.coozila.com/blogs/entry/Installing-Nginx-With-PHP5-And-PHP-FPM-APC-And-MySQL-Support-On-CentOS-6-3-fo-Dolphin-sites

I opened this blog where I work for improvements

brunno
Quote · 18 Dec 2012

question: is my location correct for importing the rewrite rules?

location / {

include rewrite_rules.conf

}

The site appears to be working OK.

Geeks, making the world a better place
Quote · 18 Dec 2012

If using a multisite configuration, makes sense to add directly in HTTP Core Modules the full path


# HTTP Core Module
        # http://wiki.nginx.org/NginxHttpCoreModule
        http {

        include        /etc/nginx/rewrite_rules.conf
        include      /etc/nginx/mime.types;
        include    /etc/nginx/fastcgi.conf;

etc

or add at the end the full path:

    # Load Rewrite Rules
    include
/etc/nginx/rewrite_rules.conf;
}

 

 

brunno
Quote · 29 Jan 2013

Thanks for the tip

Geeks, making the world a better place
Quote · 29 Jan 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.