Some Issues with Configuration

Jonathan Matthews contact at
Wed Mar 5 21:03:22 UTC 2014

On 5 March 2014 11:13, Richard Ibbotson <richard.ibbotson at> wrote:
> Hi
> I've been having a few problems with configuration of NGINX.  No
> problems with running Apache or Lighttpd on my own Linux box but I've
> been scratching my head over NGINX.
> When I've compiled from source or used the vanilla Ubuntu package I
> find that I can download the front page from my box which is
>  This is an HTML page. I can't
> download other pages which are serveral instances of Wordpress.  Such
> as  What I get instead is
> that my web browser (I have tried several web browsers in different
> locations)  asks me to download a BIN file instead of a web page.
> I'm sure that someone has had this problem when configuring NGINX.  Can
> anyone point me in the right direction ?  I thought it might be
> something to do with the location statment.  Such as ....
> /etc/nginx/common/locations.conf
> # Blog
> location = /blog {
>          allow all;
>          access_log off;
>          log_not_found off;
> }
> But.. No... That's not it either.

Nginx doesn't execute PHP. It passes each request destined for your
blog (i.e. the locations you decide are "your blog") to another
process that runs/is-running the PHP. Take a look here, and it might

If you're still stuck, please have a google before asking more
questions here. There are many, many, *many* articles out there,
explaining how to get Nginx+PHP/WordPress working, and the config you
posted above strongly suggests you've not read any of them yet! The
Internet is your friend ... ;-)


More information about the nginx mailing list