Difficulty configuring virtual host
Paul G Webster
opensource at interflective.com
Sun Mar 11 00:57:27 UTC 2012
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 at 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 at 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/
More information about the nginx
mailing list