Dynamic Subdomain Configuration

Edho Arief edho at myconan.net
Tue Feb 21 01:32:33 UTC 2012


On Tue, Feb 21, 2012 at 8:28 AM, justin <nginx-forum at nginx.us> wrote:
> This is for Wordpress, I already have a try_files. I want to log not
> found everywhere else, just not in the dynamic subdomain
>

You can (should) have another try_files in location ~ \.php$

> location / {
>  try_files $uri $uri/ /index.php?$args;
> }
>
> location ~ \.php$ {
        try_files $uri =404;
>
>  include /etc/nginx/fastcgi_params;
>  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
>  fastcgi_intercept_errors off;
>  fastcgi_pass php1.local.pagelines.com:9000;
> }
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,222733,222750#msg-222750
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



More information about the nginx mailing list