You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <jo...@slive.ca> on 2002/02/04 22:08:33 UTC

RE: RewriteMap not allowed here

> From: Korey G. [mailto:korey@awpg.com]

>
> 	Im trying to learn the URL Rewriting Module on Apache
> and have come accross a small problem,

Put the RewriteMap in the main server context, outside any <Directory>
section.

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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: To the list manager

Posted by "S. David Sheeks" <sd...@isdponline.com>.
My rules work just fine.

-----Original Message-----
From: Raquel Rice [mailto:raquel@thericehouse.net]
Sent: Monday, February 04, 2002 5:47 PM
To: users@httpd.apache.org
Subject: Re: To the list manager


On Mon, 4 Feb 2002 17:03:55 -0500
Joshua Slive "Joshua Slive" <jo...@slive.ca> wrote:

> > From: umut@ial94.com [mailto:umut@ial94.com]
> >
> > please supply a keyword to the topic...
> > I am getting many emails to this account, everything messes
> up...
> > Please supply a keyword to the topic, so I can use rules to
> classify my
> > emails..
>
> Apache lists in general don't use subject [keywords].  Some people
> like
> them, some people don't.  But we'll probably stick to the Apache
> tradition
> unless there is a real concensus otherwise.
>
> If you want to filter, may I suggest the following header:
> Delivered-To: mailing list users@httpd.apache.org
>
> This is included in all emails from the list.
>
> Joshua.

My opinion is that it's just fine the way it is.

--
Raquel
============================================================
It had long since come to my attention that people of accomplishment
rarely sat back and let things happen to them.  They went out and
happened to things.
  --Elinor Smith




---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: To the list manager

Posted by Raquel Rice <ra...@thericehouse.net>.
On Mon, 4 Feb 2002 17:03:55 -0500
Joshua Slive "Joshua Slive" <jo...@slive.ca> wrote:

> > From: umut@ial94.com [mailto:umut@ial94.com]
> >
> > please supply a keyword to the topic...
> > I am getting many emails to this account, everything messes
> up...
> > Please supply a keyword to the topic, so I can use rules to
> classify my
> > emails..
> 
> Apache lists in general don't use subject [keywords].  Some people
> like
> them, some people don't.  But we'll probably stick to the Apache
> tradition
> unless there is a real concensus otherwise.
> 
> If you want to filter, may I suggest the following header:
> Delivered-To: mailing list users@httpd.apache.org
> 
> This is included in all emails from the list.
> 
> Joshua.

My opinion is that it's just fine the way it is.

-- 
Raquel
============================================================
It had long since come to my attention that people of accomplishment
rarely sat back and let things happen to them.  They went out and
happened to things.
  --Elinor Smith

                              
                              

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: To the list manager

Posted by um...@ial94.com.
thanks, it worked for both outlook, pegasus and pico mail...
----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Tuesday, February 05, 2002 12:03 AM
Subject: RE: To the list manager


> > From: umut@ial94.com [mailto:umut@ial94.com]
> >
> > please supply a keyword to the topic...
> > I am getting many emails to this account, everything messes up...
> > Please supply a keyword to the topic, so I can use rules to classify my
> > emails..
>
> Apache lists in general don't use subject [keywords].  Some people like
> them, some people don't.  But we'll probably stick to the Apache tradition
> unless there is a real concensus otherwise.
>
> If you want to filter, may I suggest the following header:
> Delivered-To: mailing list users@httpd.apache.org
>
> This is included in all emails from the list.
>
> 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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


RE: To the list manager

Posted by Joshua Slive <jo...@slive.ca>.
> From: umut@ial94.com [mailto:umut@ial94.com]
>
> please supply a keyword to the topic...
> I am getting many emails to this account, everything messes up...
> Please supply a keyword to the topic, so I can use rules to classify my
> emails..

Apache lists in general don't use subject [keywords].  Some people like
them, some people don't.  But we'll probably stick to the Apache tradition
unless there is a real concensus otherwise.

If you want to filter, may I suggest the following header:
Delivered-To: mailing list users@httpd.apache.org

This is included in all emails from the list.

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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


To the list manager

Posted by um...@ial94.com.
To the manager of this list:

please supply a keyword to the topic...
I am getting many emails to this account, everything messes up...
Please supply a keyword to the topic, so I can use rules to classify my
emails..

Thanks..


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


RE: RewriteMap not allowed here

Posted by "Korey G." <ko...@awpg.com>.
Thanks,
  RewriteLog should make more sense out of it,
I don't why I didnt think of that,

-Korey


At 16:43 2/4/02 -0500, you wrote:

> > From: Korey G. [mailto:korey@awpg.com]
>
> > Thanks Thoug
> > But I've tried what you suggest and the server just ignores the
> > whole thing
> > and does nothing
>
>Use the RewriteLog to figure out what is going on.  Your rules make very
>little sense to me, and I have no idea what you are trying to do, so I can't
>help.
>
>Jsohua.
>
>
>---------------------------------------------------------------------
>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
>For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: mod

Posted by Robb Hammack <ro...@rhammack.com>.
I think what he's after is the equivalent of the IIS server var
LOGON_USER, which IIS gets via a rpc to a windows dll on the client
machine (I _think_ . I've also been
trying to find an equvalent, without luck :(

--Robb Hammack

On Mon, 4 Feb 2002, Daniel Lopez wrote:

>
> If I understand directly, you want them to use the same username and
> password with which they login to their machines.
> I see no way of doing that unless their username is in a network database
> such as Active Directory or an NT domain.
> Also, technically they have already authenticated, since they are logged in
> their machines.
>
> Daniel
>
> > But the login name will be the name they authenticated as in the Linux
> > machine, not their login in Windows 2000. Is that what you mean?
> >
> > No, i'm wanting to auth based on their windows 2000 information.
> >
> > -----Original Message-----
> > From: Daniel Lopez [mailto:daniel@rawbyte.com]
> > Sent: Monday, February 04, 2002 8:08 PM
> > To: users@httpd.apache.org
> > Subject: Re: mod
> >
> >
> >
> > But the login name will be the name they authenticated as in the Linux
> > machine, not their login in Windows 2000. Is that what you mean?
> > I do not know if you could have some javascript in the login page that could
> > submit the win2k login name, but that could not be trusted, since a "clever"
> > user could change this to another username.
> >
> > Daniel
> >
> > > Let me rephrase this question and add some details.
> > >
> > > I'm running apache on linux and have clients using windows 2000 machines
> > to
> > > load the php applications.  Right now I require them to login and store
> > this
> > > as a session.  What I would like to do is grab their username from the
> > > windows 2000 machine and store that in a session.  I have not been able to
> > > find any mod for apache linux that allows this to be done.
> > >
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Daniel Lopez [mailto:daniel@rawbyte.com]
> > > Sent: Monday, February 04, 2002 7:39 PM
> > > To: users@httpd.apache.org
> > > Subject: Re: mod
> > >
> > >
> > >
> > > There are several, check modules.apache.org
> > >
> > > Daniel
> > >
> > > On Mon, Feb 04, 2002 at 07:22:03PM -0500, S. David Sheeks wrote:
> > > > Has anyone written a mod for apache that allows NT auth?
> > > >
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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
> > > > For additional commands, e-mail: users-help@httpd.apache.org
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> > > For additional commands, e-mail: users-help@httpd.apache.org
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> > > For additional commands, e-mail: users-help@httpd.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > 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
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: mod

Posted by Daniel Lopez <da...@rawbyte.com>.
If I understand directly, you want them to use the same username and
password with which they login to their machines.
I see no way of doing that unless their username is in a network database
such as Active Directory or an NT domain.
Also, technically they have already authenticated, since they are logged in
their machines.

Daniel

> But the login name will be the name they authenticated as in the Linux
> machine, not their login in Windows 2000. Is that what you mean?
> 
> No, i'm wanting to auth based on their windows 2000 information.
> 
> -----Original Message-----
> From: Daniel Lopez [mailto:daniel@rawbyte.com]
> Sent: Monday, February 04, 2002 8:08 PM
> To: users@httpd.apache.org
> Subject: Re: mod
> 
> 
> 
> But the login name will be the name they authenticated as in the Linux
> machine, not their login in Windows 2000. Is that what you mean?
> I do not know if you could have some javascript in the login page that could
> submit the win2k login name, but that could not be trusted, since a "clever"
> user could change this to another username.
> 
> Daniel
> 
> > Let me rephrase this question and add some details.
> >
> > I'm running apache on linux and have clients using windows 2000 machines
> to
> > load the php applications.  Right now I require them to login and store
> this
> > as a session.  What I would like to do is grab their username from the
> > windows 2000 machine and store that in a session.  I have not been able to
> > find any mod for apache linux that allows this to be done.
> >
> >
> >
> >
> > -----Original Message-----
> > From: Daniel Lopez [mailto:daniel@rawbyte.com]
> > Sent: Monday, February 04, 2002 7:39 PM
> > To: users@httpd.apache.org
> > Subject: Re: mod
> >
> >
> >
> > There are several, check modules.apache.org
> >
> > Daniel
> >
> > On Mon, Feb 04, 2002 at 07:22:03PM -0500, S. David Sheeks wrote:
> > > Has anyone written a mod for apache that allows NT auth?
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> > > For additional commands, e-mail: users-help@httpd.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > 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
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> 
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


RE: mod

Posted by "S. David Sheeks" <sd...@isdponline.com>.
But the login name will be the name they authenticated as in the Linux
machine, not their login in Windows 2000. Is that what you mean?

No, i'm wanting to auth based on their windows 2000 information.

-----Original Message-----
From: Daniel Lopez [mailto:daniel@rawbyte.com]
Sent: Monday, February 04, 2002 8:08 PM
To: users@httpd.apache.org
Subject: Re: mod



But the login name will be the name they authenticated as in the Linux
machine, not their login in Windows 2000. Is that what you mean?
I do not know if you could have some javascript in the login page that could
submit the win2k login name, but that could not be trusted, since a "clever"
user could change this to another username.

Daniel

> Let me rephrase this question and add some details.
>
> I'm running apache on linux and have clients using windows 2000 machines
to
> load the php applications.  Right now I require them to login and store
this
> as a session.  What I would like to do is grab their username from the
> windows 2000 machine and store that in a session.  I have not been able to
> find any mod for apache linux that allows this to be done.
>
>
>
>
> -----Original Message-----
> From: Daniel Lopez [mailto:daniel@rawbyte.com]
> Sent: Monday, February 04, 2002 7:39 PM
> To: users@httpd.apache.org
> Subject: Re: mod
>
>
>
> There are several, check modules.apache.org
>
> Daniel
>
> On Mon, Feb 04, 2002 at 07:22:03PM -0500, S. David Sheeks wrote:
> > Has anyone written a mod for apache that allows NT auth?
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: mod

Posted by Daniel Lopez <da...@rawbyte.com>.
But the login name will be the name they authenticated as in the Linux
machine, not their login in Windows 2000. Is that what you mean?
I do not know if you could have some javascript in the login page that could
submit the win2k login name, but that could not be trusted, since a "clever"
user could change this to another username.

Daniel

> Let me rephrase this question and add some details.
> 
> I'm running apache on linux and have clients using windows 2000 machines to
> load the php applications.  Right now I require them to login and store this
> as a session.  What I would like to do is grab their username from the
> windows 2000 machine and store that in a session.  I have not been able to
> find any mod for apache linux that allows this to be done.
> 
> 
> 
> 
> -----Original Message-----
> From: Daniel Lopez [mailto:daniel@rawbyte.com]
> Sent: Monday, February 04, 2002 7:39 PM
> To: users@httpd.apache.org
> Subject: Re: mod
> 
> 
> 
> There are several, check modules.apache.org
> 
> Daniel
> 
> On Mon, Feb 04, 2002 at 07:22:03PM -0500, S. David Sheeks wrote:
> > Has anyone written a mod for apache that allows NT auth?
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> 
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


RE: mod

Posted by "S. David Sheeks" <sd...@isdponline.com>.
Let me rephrase this question and add some details.

I'm running apache on linux and have clients using windows 2000 machines to
load the php applications.  Right now I require them to login and store this
as a session.  What I would like to do is grab their username from the
windows 2000 machine and store that in a session.  I have not been able to
find any mod for apache linux that allows this to be done.




-----Original Message-----
From: Daniel Lopez [mailto:daniel@rawbyte.com]
Sent: Monday, February 04, 2002 7:39 PM
To: users@httpd.apache.org
Subject: Re: mod



There are several, check modules.apache.org

Daniel

On Mon, Feb 04, 2002 at 07:22:03PM -0500, S. David Sheeks wrote:
> Has anyone written a mod for apache that allows NT auth?
>
>
>
>
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: mod

Posted by Daniel Lopez <da...@rawbyte.com>.
There are several, check modules.apache.org

Daniel

On Mon, Feb 04, 2002 at 07:22:03PM -0500, S. David Sheeks wrote:
> Has anyone written a mod for apache that allows NT auth?
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


mod

Posted by "S. David Sheeks" <sd...@isdponline.com>.
Has anyone written a mod for apache that allows NT auth?




---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


RE: RewriteMap not allowed here

Posted by Joshua Slive <jo...@slive.ca>.
> From: Korey G. [mailto:korey@awpg.com]

> Its not working, these are my entries
>
> 192.168.2.143- - [04/Feb/2002:17:29:27 -0500]
> [www.servera.com/sid#81e5514][rid#826ebb4/initial/redir#1] (2)
> init rewrite
> engine with requested uri /beer/index.html
> 192.168.2.143 - - [04/Feb/2002:17:29:27 -0500]
> [www.servera.com/sid#81e5514][rid#826ebb4/initial/redir#1] (1)
> pass through
> /beer/index.html
>
> >RewriteCond %{HTTP_REFERER} ^servera.com$ [NC]
> >RewriteRule (.*) /index.html
> >RewriteCond %{HTTP_REFERER} ^serverb.com$ [NC]
> >RewriteRule (.*) /index2.html

The easiest way to handle this stuff is to avoid the per-directory config
confusion by placing the Rewrite stuff in the main server context, outside
any <Directory> section.  Then, if necessary, you can make the RewriteRule
more specific, for example:

RewriteRule ^/beer/.* /index.html

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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: RewriteMap not allowed here

Posted by "Korey G." <ko...@awpg.com>.
Its not working, these are my entries

192.168.2.143- - [04/Feb/2002:17:29:27 -0500] 
[www.servera.com/sid#81e5514][rid#826ebb4/initial/redir#1] (2) init rewrite 
engine with requested uri /beer/index.html
192.168.2.143 - - [04/Feb/2002:17:29:27 -0500] 
[www.servera.com/sid#81e5514][rid#826ebb4/initial/redir#1] (1) pass through 
/beer/index.html


At 17:18 2/4/02 -0500, you wrote:

> > From: Korey G. [mailto:korey@awpg.com]
>
> >
> > What Im trying to do is to have everyone
> >   from ServerA.com go to index.html and everyone
> > from ServerB.com to go to index2.html
>
>By "from ServerA.com" I assume you mean they clicked on a link on a page at
>ServerA.com.  If my assumption is correct, then you want something like:
>
>RewriteCond %{HTTP_REFERER} ^servera.com$ [NC]
>RewriteRule (.*) /index.html
>RewriteCond %{HTTP_REFERER} ^serverb.com$ [NC]
>RewriteRule (.*) /index2.html
>
>Of course, you weren't very specific in your requirements, so this is just a
>guess.
>
>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@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


RE: RewriteMap not allowed here

Posted by Joshua Slive <jo...@slive.ca>.
> From: Korey G. [mailto:korey@awpg.com]

>
> What Im trying to do is to have everyone
>   from ServerA.com go to index.html and everyone
> from ServerB.com to go to index2.html

By "from ServerA.com" I assume you mean they clicked on a link on a page at
ServerA.com.  If my assumption is correct, then you want something like:

RewriteCond %{HTTP_REFERER} ^servera.com$ [NC]
RewriteRule (.*) /index.html
RewriteCond %{HTTP_REFERER} ^serverb.com$ [NC]
RewriteRule (.*) /index2.html

Of course, you weren't very specific in your requirements, so this is just a
guess.

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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: RewriteMap not allowed here

Posted by "Korey G." <ko...@awpg.com>.
What Im trying to do is to have everyone
  from ServerA.com go to index.html and everyone
from ServerB.com to go to index2.html

Is this possible?

At 16:43 2/4/02 -0500, you wrote:

> > From: Korey G. [mailto:korey@awpg.com]
>
> > Thanks Thoug
> > But I've tried what you suggest and the server just ignores the
> > whole thing
> > and does nothing
>
>Use the RewriteLog to figure out what is going on.  Your rules make very
>little sense to me, and I have no idea what you are trying to do, so I can't
>help.
>
>Jsohua.
>
>
>---------------------------------------------------------------------
>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
>For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


RE: RewriteMap not allowed here

Posted by Joshua Slive <jo...@slive.ca>.
> From: Korey G. [mailto:korey@awpg.com]

> Thanks Thoug
> But I've tried what you suggest and the server just ignores the
> whole thing
> and does nothing

Use the RewriteLog to figure out what is going on.  Your rules make very
little sense to me, and I have no idea what you are trying to do, so I can't
help.

Jsohua.


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


RE: RewriteMap not allowed here

Posted by "Korey G." <ko...@awpg.com>.
Thanks Thoug
But I've tried what you suggest and the server just ignores the whole thing 
and does nothing

At 16:08 2/4/02 -0500, you wrote:

> > From: Korey G. [mailto:korey@awpg.com]
>
> >
> >       Im trying to learn the URL Rewriting Module on Apache
> > and have come accross a small problem,
>
>Put the RewriteMap in the main server context, outside any <Directory>
>section.
>
>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@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org