Aleks,
How does this look?
server {
listen *:443 ssl;
server_name
~^(?rwa|m2m|dwa)-(?\w+)-(\w+)\.(?(diasranch.net))(:\d+)?$;
proxy_read_timeout 86400s;
proxy_buffering off;
#access_log /logs/ssl_access.log;
error_log/logs/ssl_error.log error;
ssl_protocols
so far I have come up with the following but , I have been reading that
using if statements is bad.
if ($http_host ~ "^rwa-(.*)"){
set $rule_0 1;
set $bref_2 $2;
set $bref_7 $7;
}
if ($http_host ~ "^m2m-(.*)"){
set $rule_0 1;
set $bref_2 $2;
set $bref_7 $7;
}
if ($http_host ~ "^dwa-(.*)"){
set $rul
Alex,
I have a LUA version of the PHP script.
I am not sure about the multiple rewrite or conditions
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,274815,274870#msg-274870
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mai