.XML running PHP getting 403

txt3rob nginx-forum at forum.nginx.org
Mon Feb 22 11:46:30 UTC 2016


Hi,

I want a PHP file to have the extension of .xml but when i do the below when
accessing the php file via web browser i get a access denied.

location ~ ^(.+\.xml)(/.*)?$ {
		fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
		include fastcgi.conf;
	}

do i need to add anything like allow or something to this block?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,264704,264704#msg-264704



More information about the nginx mailing list