Welcome! Log In Create A New Profile

Advanced

Re: rewrite except one directory

Philipp Kraus
February 16, 2014 02:58PM
Hi

thanks for your answer, seems to be working

> ==
> location ^~ /scripts/ {
> # do your /scripts/ stuff
> }
> location / {
> # do everything else
> }
> ==


I have defined my script location with:

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
include /etc/nginx/fastcgi_params;
}

location ^~/scripts
{
alias /home/www/content/scripts;
}

but in my alias path there are stored PHP scripts and at the moment
I get a download of the script but the script is not pushed to the fast-cgi
process. How can I enabled in the script location the PHP CGI for *.php
files?

Thanks

Phil


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

rewrite except one directory

Philipp Kraus February 16, 2014 02:00AM

Re: rewrite except one directory

Francis Daly February 16, 2014 04:50AM

Re: rewrite except one directory

Philipp Kraus February 16, 2014 02:58PM

Re: rewrite except one directory

Jim Ohlstein February 16, 2014 03:40PM

Re: rewrite except one directory

Philipp Kraus February 16, 2014 03:56PM

Re: rewrite except one directory

Francis Daly February 16, 2014 04:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 340
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready