what's the simplest way to serve php files through an alias?
Edho P Arief
edhoprima at gmail.com
Sun Oct 3 05:03:48 MSD 2010
On Sun, Oct 3, 2010 at 7:23 AM, Ilan Berkner <iberkner at gmail.com> wrote:
> Thanks,
> I tried it using "root" in the location, still no luck.
> Here's my config (the parts that matter), the location /nagios/ is what's
> not working. What am I doing wrong? Thanks
"not working"?
- What are you expecting?
- What are you getting?
> http
> {
> root /var/www/html;
> server
> {
> listen 10.0.1.163;
> server_name dev.testsite.com;
> location /nagios/
> {
> root /usr/local/nagios/share;
> index index.php;
> }
as this one is located in different root path, you need additional php block
location ~ ^/nagios/.*\.php$ {
...
}
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list