I have two files in perl and php e.g script.pl and script.php php is listening on 6060. how can i make it such that if script.pl returns nothing (or zero), it will be diverted to script.php? location ~* "^/" { rewrite ^/(.*) /script.pl?$1; try_files $uri /script.php?$1 /index.html; set $server_used 127.0.0.1:6060; proxy_by hwong - How to...
not host but remote host address translate into ipby hwong - How to...
How do i make it detect that if ( $remote_addr = "something.dyndns.org" ) { instead of if ( $remote_addr = "1.1.1.1.1" ) { meaning, how do i make it such that something.dyndns.org is translated into 1.1.1.1 and recognized by nginx for the above example? Please help. thanks Samby hwong - How to...