httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Morse <Robert_Mo...@brown.edu>
Subject Re: [users@httpd] different home pages
Date Thu, 19 Feb 2004 16:47:09 GMT
Joshua Slive wrote:

>On Thu, 19 Feb 2004, Darryl Cook wrote:
>
>  
>
>>sure....look at virtual hosts.
>>    
>>
>
>  
>
>>Robert Morse wrote:
>>    
>>
>>>I was asked to set up our web server so that people accessing the
>>>home page from the inside will get one page, and people accessing
>>>the home page from outside will get a different page. Has anbody
>>>done this before? Or knows how to do this?
>>>      
>>>
>
>I don't think that's what he meant.  He wants users to see a different
>site based on THEIR address, not the server's address.
>
>One way to do this is with mod_rewrite, as in
>
>RewriteEngine On
>RewriteCond %{REMOTE_IP} some-regex
>RewriteRule .* /some/place
>
>Joshua.
>  
>
Thank you!!! That worked just as I needed it.
(except the env variable is REMOTE_ADDR)
Thanks again.

-- 

Bob Morse
Senior Systems Programmer
CIS
Brown University
401 863 7426



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message