Welcome! Log In Create A New Profile

Advanced

Re: How to setup nginx to make php works in site subdirectories

Francis Daly
February 12, 2012 08:00AM
On Sun, Feb 12, 2012 at 06:33:09AM -0500, dimentiy wrote:

Hi there,

> Scripts in site's root are processed, but in subdirectories are not (

Using your configuration, I'm unable to reproduce your reported output.

There are some tidy-up fixes that could be done to your configuration,
but what you have should be working already.

I suspect that either it *is* working but your browser cache is hiding
that from you; or you have an extra location{} block that means that your
"\.php$" one isn't being used.

Suggestion: create a file /var/www/nginx-default/example.com/stuff/new.php
with the contents:

==
<?php
print_r($_GET);
?>
stuff/new.php
==

and look at the result of getting example.com/stuff/new.php. That should
remove the "browser cache" possibility.

If it is still not what you expect, then something like the debug log
should show you which location{} is being used for this request.

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to setup nginx to make php works in site subdirectories

dimentiy February 12, 2012 06:00AM

Re: How to setup nginx to make php works in site subdirectories

Joe February 12, 2012 06:12AM

Re: How to setup nginx to make php works in site subdirectories

dimentiy February 12, 2012 06:33AM

Re: How to setup nginx to make php works in site subdirectories

Joe February 12, 2012 07:22AM

Re: How to setup nginx to make php works in site subdirectories

dimentiy February 12, 2012 12:48PM

Re: How to setup nginx to make php works in site subdirectories

Francis Daly February 12, 2012 08:00AM

Re: How to setup nginx to make php works in site subdirectories

dimentiy February 12, 2012 01:04PM

Re: How to setup nginx to make php works in site subdirectories

dimentiy February 12, 2012 01:14PM

Re: How to setup nginx to make php works in site subdirectories

dimentiy February 12, 2012 03:28PM

Re: How to setup nginx to make php works in site subdirectories

Francis Daly February 12, 2012 03:12PM

Re: How to setup nginx to make php works in site subdirectories

Francis Daly February 12, 2012 04:54PM

Re: How to setup nginx to make php works in site subdirectories

Max February 12, 2012 07:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 238
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready