Alias does not work with php

Maxim Dounin mdounin at mdounin.ru
Sat Dec 17 12:55:43 UTC 2011


Hello!

On Sat, Dec 17, 2011 at 04:43:05AM -0500, tapir wrote:

> Hello,
> 
> I've set up nginx 1.0.10 with php5-fpm. I've tested the setup and I can
> confirm that php works.
> The problem is when I set up an alias under "location /" nginx can't
> load the php pages. Only static html files work.
> 
> Any ideas?

Most likely, you've forgot to add corresponding alias in your .php 
location.

Maxim Dounin



More information about the nginx mailing list