Re: Configuring nginx for both static pages and fcgi simultaneously

2016-07-31 Thread Maxim Dounin
Hello! On Mon, Aug 01, 2016 at 01:38:29AM +0200, Richard Stanway wrote: > Are you sure you don't want to use try_files for this? If a required handling is known in advance there is no need to use try_files and waste resources on it. -- Maxim Dounin http://nginx.org/ _

Re: Configuring nginx for both static pages and fcgi simultaneously

2016-07-31 Thread Richard Stanway
Are you sure you don't want to use try_files for this? http://nginx.org/en/docs/http/ngx_http_core_module.html#try_files On Mon, Aug 1, 2016 at 1:15 AM, Maxim Dounin wrote: > Hello! > > On Sun, Jul 31, 2016 at 06:55:54PM -0400, Denis Papathanasiou wrote: > > > I have the following configuration

Re: Configuring nginx for both static pages and fcgi simultaneously

2016-07-31 Thread Maxim Dounin
Hello! On Sun, Jul 31, 2016 at 06:55:54PM -0400, Denis Papathanasiou wrote: > I have the following configuration file defined in > /etc/nginx/conf.d/my-project.conf (this is on debian). > > It does what I want, in that it serves static contet in the /css, /images, > /js folders along with index.

Configuring nginx for both static pages and fcgi simultaneously

2016-07-31 Thread Denis Papathanasiou
I have the following configuration file defined in /etc/nginx/conf.d/my-project.conf (this is on debian). It does what I want, in that it serves static contet in the /css, /images, /js folders along with index.html correctly. And for dynamic requests (I'm running an fcgi-enabled server on port 90

Re: Auth_digest not working

2016-07-31 Thread Maxim Dounin
Hello! On Sat, Jul 30, 2016 at 06:03:47PM +0200, Matthias Fechner wrote: > I have a very simple webserver running with php-fpm connected (to handle > php scripts). > It is running perfectly fine without authentication (on a FreeBSD > installation). > > If I enable auth_digest (which is enabled i

[FIXED]PHP-FPM Integration driving me mad

2016-07-31 Thread Simon Hönscheid
Hey Edho, Thanks a lot! Fixed! Kind Regards Simon Am 30.07.16 um 23:43 schrieb Edho Arief: Hi, On Sun, Jul 31, 2016, at 05:44, Simon Hönscheid wrote: server { server_name www.example.com; listen xxx.xxx.xxx.xx:443 ssl http2; access_log /var/log/nginx/www.example.com-access.log com