RE: [users@httpd] Filters in Apache?

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

 



I will take a look at mod_rewrite.

As far as alpha. Let's say that someone enters the alpha site passing
parameters through the URL, a post, or even just header variables. I
want the ability to have the filter look at any of those different ways
and get the value of the variable. 

So let's say that someone enters the alpha url via a POST that has a
variable of user. If user equals Anthony, I should redirect them to
beta. If user equals Josh, I should checked to see if they are logged on
and then let them through or send them to a login page.

I basically want a way to provide some control/security over all the
sites without have the sites modified. 

-----Original Message-----
From: jslive@xxxxxxxxx [mailto:jslive@xxxxxxxxx] On Behalf Of Joshua
Slive
Sent: Tuesday, August 22, 2006 5:02 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] Filters in Apache?

On 8/22/06, Anthony Smith <anthony.smith@xxxxxxxxx> wrote:

> I know that if I was doing this in java I would need a filter, but if
my
> sites under apache just includes pictures and html docs, with some
cgi, I am
> unsure if a filter is really what I need.

> I was trying to figure out a way, where based on the URL path  could
do
> certain things.

> If someone goes to:
>
>
>
> http:/mysite.com/alpha -> This would maybe check the header
information for
> a certain variable (anything under the alpha directory (files or
folders))
>
> http:/mysite.com/beta -> This would forward you to beta.mysite.com
(anything
> under the beta directory (files or folders))
>
> http:/mysite.com/gamma -> This would maybe check the time of day and
if it
> is after 5pm forwards you to a static page that says it is after 5pm.
>
>
>
> Is anything like this possible?

Probably with mod_rewrite, but your requirements above are not very
clear.  Beta and gamma are certainly possible, but I don't know what
you mean by "a certain variable" nor what you want to do with it.

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


---------------------------------------------------------------------
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