Re: [users@httpd] Rewrite question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 9 Mar 2005 14:46:53 -0500, Lucas, David <David.Lucas@xxxxxxx> wrote:
> RewriteEngine on
> RewriteCond %{REMOTE_ADDR} ^10\.10\.131\.[0-9]
> RewriteRule (.*) /nec/index.html
> RewriteCond %{REMOTE_ADDR} !10\.10\.131\.[0-9]
> RewriteRule (.*) /index.html
> 
> This seems to be working properly.

> Now, what doesn't seem to work is SSL.  I have this in the ssl.conf
> file:

[...]

Note there is nothing special about ssl.conf versus httpd.conf.  If
you want something to apply specifically to an ssl-site, you need to
place it into the appropriate <VirtualHost> container.

Your particular configuration has several problems.  For example, it
will rewrite ALL requests.  Perhaps you intend to hit only .html
files, or only requests that have been refered from another site?

Joshua.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux