Welcome! Log In Create A New Profile

Advanced

Compress location config

January 04, 2010 02:49PM
Hi nginx community!

I am new to nginx and my regex knowledge is just basic.
Can somebody help me to compress these three rules:

[code]
location ~ ^/forum/vbseo_sitemap/.+\.php$ {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
fastcgi_pass phpload;
include /etc/nginx/fastcgi_params;
}

location ~ ^/forum/.+\.php$ {
fastcgi_param SCRIPT_FILENAME $document_root/forum/vbseo.php;
fastcgi_index index.php;
fastcgi_pass phpload;
include /etc/nginx/fastcgi_params;
}

location ~ .*\.php$ {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
fastcgi_pass phpload;
include /etc/nginx/fastcgi_params;
}
[/code]

Thanks - Best regards
macindy
Subject Author Posted

Compress location config

macindy January 04, 2010 02:49PM

Re: Compress location config

Igor Clark January 06, 2010 02:46PM

Re: Compress location config

Tobia Conforto January 08, 2010 10:38AM

Re: Compress location config

macindy January 08, 2010 03:56PM

Re: Compress location config

merlin corey January 08, 2010 07:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready