handling subdirectories location

Francis Daly francis at daoine.org
Mon Jun 8 23:26:44 UTC 2015


On Mon, Jun 08, 2015 at 08:08:10PM -0300, Thiago Farina wrote:
> On Mon, Jun 8, 2015 at 7:46 PM, Francis Daly <francis at daoine.org> wrote:
> > On Mon, Jun 08, 2015 at 02:07:54PM -0300, Thiago Farina wrote:

Hi there,

> server {
>     listen       80;
>     server_name  domainame.com;
> 
>     root /data/www/domainame.com;
>     include fastcgi.conf;
> 
>     location ^~ /gocart/ {
>       location ~ \.php($|/) {
>         fastcgi_split_path_info (.*.php)(/.*);
>         fastcgi_pass   127.0.0.1:9000; #unix:/var/run/php5-fpm.sock;
>       }
>     }
> }
> 
> But when I navigate to http://domainame.com/gocart nginx returns 403 Forbidden.

What response do you want?

Be as specific as possible.

(I suspect that the answer is "a http redirect to
http://domainame.com/gocart/"; but I'm reluctant to guess.)

Perhaps adding "index index.html index.php;" at server-level will help?

The machine will do exactly what you tell it to. It will only do what
you want it to, if you tell it what you want.

> Basically what I'm trying to do is to run gocart
> (https://gocartdv.com) and phorum (www.phorum.org) in

I don't see any obvious "how to install this on a web server, from scratch"
documentation on either of those web sites. Perhaps I'm looking in the
wrong place.

(Or perhaps the authors don't want them to be installed anywhere.)

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list