httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malka Cymbalista" <>
Subject [users@httpd] RewriteRule problem
Date Wed, 18 Feb 2004 14:00:50 GMT
I have a strange problem with my web server.  I am running apache 2.0.48
with mod_perl 1.99_12 on a Sun Solaris machine running Solaris 9. The
URL for our site is  When someone goes to, the appropriate page is served up
depending on the IP address of the machine requesting the page so that
people inside
Weizmann get one page and people outside Weizmann get a different

I have the following code in my httpd.conf file:

RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{REMOTE_ADDR} !^138\.76.+
RewriteCond %{REMOTE_ADDR} !^138\.77.+
RewriteRule ^/$ [L]

RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{REMOTE_ADDR} ^138\.76.+|^138\.77.+
RewriteRule ^/$ [L]

These lines are in the <VirtualHost> section of the file. The problem
is that when someone inside Weizmann goes to,
they get the appropriate page but the URL that is displayed in the
location bar is and what I
want displayed is simply  The odd thing is
that if someone from outside Weizmann goes to
they will get the proper page but they will see displayed in the location bar and this is
what I want. I just upgraded to a new server and on the old server
everything worked properly.  I also have another web server that runs
inside our firewall and on this server everything works properly as
well.  The code in both httpd.conf files is the same.

I would appreciate it if anyone can shed any light on this problem.
Thanks in advance.

Malki Cymbalista
Webmaster, Weizmann Institute of Science
Rehovot, Israel 76100

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message