Welcome! Log In Create A New Profile

Advanced

if ( $remote_addr = "something.dyndns.org" ) {

Posted by hwong 
if ( $remote_addr = "something.dyndns.org" ) {
March 01, 2011 05:42PM
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


Sam
Re: if ( $remote_addr = "something.dyndns.org" ) {
March 08, 2011 09:34AM
Was it something like this you where looking for?

if ($host = 'something.dyndns.org') {rewrite ^ 1.1.1.1.1 permanent;}
Re: if ( $remote_addr = "something.dyndns.org" ) {
March 08, 2011 09:50AM
not host but remote host address translate into ip
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 254
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready