[colug-432] virtual hosts based on ip

Angelo McComis angelo at mccomis.com
Wed Oct 14 09:41:38 EDT 2015


You could use the rewrite engine in .htaccess to achieve this. It will be a
pain in the xxx to manage, but it's possible.


These should help:

http://stackoverflow.com/questions/8985502/htaccess-redirect-to-all-ips-but-mine
http://stackoverflow.com/questions/24468660/apache-rewrite-subnet-ip-range
http://mod-rewrite-cheatsheet.com/


On Wed, Oct 14, 2015 at 9:11 AM, Keith Larson <klarson at k12group.net> wrote:

> is it possible to present a different instance of a page based on the
> source ip address?  ie.  two customers A and B.  i want customer A to see a
> different version of a webpage than customer B.  they have different ip
> ranges that they would be coming from based on their external nat.  i would
> think that this can be done, but i'm not exactly sure how.  i've done named
> virtual hosts with no problems.
>
> i also don't want customer A to be able to see customer B's version or
> even know that it exists.
>
>
> _______________________________________________
> colug-432 mailing list
> colug-432 at colug.net
> http://lists.colug.net/mailman/listinfo/colug-432
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.colug.net/pipermail/colug-432/attachments/20151014/4b7806c6/attachment-0001.html 


More information about the colug-432 mailing list