Mailing list software that plays nice with nginx - locations help

Ian Evans ianevans at digitalhit.com
Wed Nov 9 14:50:05 UTC 2011


On 08/11/2011 1:08 PM, Ian M. Evans wrote:
> Anyway, the settings there seem to be if the list software is installed at
> the document root.
> How would I change the locations if the software is installed at /lists?
> [I suck at locations and haven't had much sleep!]

Here are the locations on the wiki:

location ~* \.(txt|log|inc)$ {

location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {

location /config {

location ~* 
(index\.php|upload\.php|connector\.php|dl\.php|ut\.php|lt\.php|download\.php)$ 
{
fastcgi_split_path_info ^(.|\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
[etc]
}

location ~ \.php$ {

If phplists is being installed in /lists and not the root as in the wiki 
example (http://wiki.nginx.org/PHPList), how would I change these 
locations?

Would it be location ~* /lists\.(txt|log|inc)$ {
etc?

And how would I change fastcgi_split_path_info ^(.|\.php)(/.+)$; and 
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

Thanks.



More information about the nginx mailing list