location ~ (.*)?/(spb|ekb|kra|sam)/?$ {
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param QUERY_STRING city=$2&$query_string;
fastcgi_param SCRIPT_FILENAME $document_root$1/index.php;
}
(.*)?/(spb|ekb|kra|sam)/?...<сюда>...$
, но пока не дошла правильная версия. #auth_basic "Restricted";
#auth_basic_user_file /etc/nginx/conf/passwd;
location /some {
proxy_pass 127.0.0.1:8080/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Оба варианта готовы к service ... reload.