Welcome! Log In Create A New Profile

Advanced

Re: Difficulty configuring virtual host

Paul G Webster
March 10, 2012 08:16PM
I should probably add as someone just pointed out to me on IRC .. if there
is a way of doing this without ifs I would be more than happy to use it,
it was an example only 8)

On Sun, 11 Mar 2012 00:57:27 -0000, Paul G Webster
<opensource@interflective.com> wrote:

> Ideally doing this:
>
> if (srcip == 4.4.4.5) {
> server_name test1;
> root /usr/local/www/4.4.4.5;
> } elsif (srcip == 2.2.2.2) {
> server_name test2;
> root /usr/local/www/2.2.2.2;
> }
>
> On Sun, 11 Mar 2012 00:47:54 -0000, Paul G Webster
> <opensource@interflective.com> wrote:
>
>> good day all I want to configure my virtual hosts based on the srcip of
>> the client, so basically the ip of the connecting client determines
>> what document root to set.
>>
>> Any ideas how this can be accomplished?
>>
>>
>> -- Thank you for your time
>> -- Paul G Webster
>> -- Checkout Opera M2 @ http://www.opera.com/mail/
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>
>


--


-- Thank you for your time
-- Paul G Webster
-- Checkout Opera M2 @ http://www.opera.com/mail/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Difficulty configuring virtual host

Paul G Webster March 10, 2012 07:50PM

Re: Difficulty configuring virtual host

Paul G Webster March 10, 2012 08:00PM

Re: Difficulty configuring virtual host

António P. P. Almeida March 10, 2012 08:14PM

Re: Difficulty configuring virtual host

Paul G Webster March 10, 2012 08:16PM

Re: Difficulty configuring virtual host

Paul G Webster March 10, 2012 08:34PM

Re: Difficulty configuring virtual host

Paul G Webster March 10, 2012 08:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 235
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