[Zope] mod_rewrite map

maillists@summitmedia.com.ph maillists@summitmedia.com.ph
Sun, 23 Dec 2001 22:59:24 +0800


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C18BC2.68C7DED0
Content-Type: text/plain;
	charset="iso-8859-1"

Oh wow! I think you may have solved my problem.

If what you are saying that I can just separate code from httpd.conf into a
file, then WOW! That's it!

I'm gonna try that now!

So in short, I can just put the mod_rewrite part into a file and put include
in that particular virtual host.

Thank you soooo much!

fritz <www.mesedilla.com>
senior systems administrator

summit interactive, inc.
www.fhm.com.ph | www.femalenetwork.com | www.candymag.com
---
+basta ikaw Lord

> -----Original Message-----
> From: Sherwood Robinson [mailto:srobinson@fredericksburg.com]
> Sent: Friday, December 21, 2001 10:10 PM
> To: maillists@summitmedia.com.ph; zope@zope.org
> Subject: RE: [Zope] mod_rewrite map
> 
> 
> Guess it was not clear as to what you want to do... if your trying to 
> mod_rewite for a different virtual hosts but you are using the same 
> mod_rewite you can do the same thing just change it a little.
> 
> Put your mod_rewite code in the file and include the file 
> instead of the 
> directory within each of your VH settings.
> 
> Include "path_to_doc/file"
> 
> am I getting closer to what you want to do?
> 
> most Apache settings are really dynamic an flexible with how 
> you can use them.
> 
> SR
> 
> At 09:25 AM 12/21/2001 +0800, maillists@summitmedia.com.ph wrote:
> 
> >Thank you so much!
> >This can be a big help.
> >
> >However, this is just an alternative to having mod_rewrite 
> in separate files.
> >
> >I am still thankful of your help.
> >
> >fritz <www.mesedilla.com>
> >senior systems administrator
> >
> >summit interactive, inc.
> >www.fhm.com.ph | www.femalenetwork.com | www.candymag.com
> >---
> >+basta ikaw Lord
> >
> > > -----Original Message-----
> > > From: Sherwood Robinson 
> > 
> [<mailto:srobinson@fredericksburg.com>mailto:srobinson@frederi
> cksburg.com]
> > > Sent: Friday, December 21, 2001 01:14 AM
> > > To: maillists@summitmedia.com.ph; zope@zope.org; Chris Withers
> > > Subject: RE: [Zope] mod_rewrite map
> > >
> > >
> > > I use Apache mod_rewite with VHM and have no problems at 
> all.  I use
> > > separate config files for each Virtual Host.
> > >
> > > To do this just tell Apache in the bottom of your 
> httpd.conf file to
> > > process a folder.  Any document in this folder will be
> > > treated as a part of
> > > the httpd.conf file
> > >
> > > here is the httpd.conf line to add:
> > >
> > > Include  "Path to folder"
> > >
> > > inside this folder I store all virtual domain information in
> > > separate files
> > > per virtual domain named according to that domain.  These are
> > > simple text
> > > files with the virtualhost command and directives including
> > > the mod_rewite
> > > commands for that virtual domain.
> > >
> > > Hope this helps!
> > >
> > > SR
> > >
> > > At 12:50 AM 12/21/2001 +0800, maillists@summitmedia.com.ph wrote:
> > >
> > > >Oh. I'm sorry I wasn't very clear.
> > > >I currently have apache/mod_rewrite in front of zope/zeo.
> > > >
> > > >Thus, to lessen clutter on httpd.conf, I want to put all
> > > rewrites in a
> > > >file and call it from there.
> > > >My main problem comes when VirtualHostMonster is involved.
> > > >rewritemap doesn't seem to work properly.
> > > >
> > > >If someone has implemented this, PLEASE help me. Thanks.
> > > >
> > > >fritz <www.mesedilla.com>
> > > >senior systems administrator
> > > >
> > > >summit interactive, inc.
> > > >www.fhm.com.ph | www.femalenetwork.com | www.candymag.com
> > > >---
> > > >+basta ikaw Lord
> > >
> > > ----------------------------------------------------
> > > Sherwood Robinson
> > > Hostmaster
> > > The Free Lance-Star/Internet Department
> > > srobinson@fredericksburg.com
> > > <http://www.fredericksburg.com>http://www.fredericksburg.com
> > >
> > > 616 Amelia St.
> > > Fredericksburg, VA 22401
> > > 540-374-5000 ext. 5657
> > >
> > >
> 
> ----------------------------------------------------
> Sherwood Robinson
> Hostmaster
> The Free Lance-Star/Internet Department
> srobinson@fredericksburg.com
> http://www.fredericksburg.com
> 
> 616 Amelia St.
> Fredericksburg, VA 22401
> 540-374-5000 ext. 5657
> 
> 

------_=_NextPart_001_01C18BC2.68C7DED0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Zope] mod_rewrite map</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Oh wow! I think you may have solved my =
problem.</FONT>
</P>

<P><FONT SIZE=3D2>If what you are saying that I can just separate code =
from httpd.conf into a file, then WOW! That's it!</FONT>
</P>

<P><FONT SIZE=3D2>I'm gonna try that now!</FONT>
</P>

<P><FONT SIZE=3D2>So in short, I can just put the mod_rewrite part into =
a file and put include in that particular virtual host.</FONT>
</P>

<P><FONT SIZE=3D2>Thank you soooo much!</FONT>
</P>

<P><FONT SIZE=3D2>fritz &lt;www.mesedilla.com&gt;</FONT>
<BR><FONT SIZE=3D2>senior systems administrator</FONT>
</P>

<P><FONT SIZE=3D2>summit interactive, inc.</FONT>
<BR><FONT SIZE=3D2>www.fhm.com.ph | www.femalenetwork.com | =
www.candymag.com</FONT>
<BR><FONT SIZE=3D2>---</FONT>
<BR><FONT SIZE=3D2>+basta ikaw Lord</FONT>
</P>

<P><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: Sherwood Robinson [<A =
HREF=3D"mailto:srobinson@fredericksburg.com">mailto:srobinson@fredericks=
burg.com</A>]</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: Friday, December 21, 2001 10:10 PM</FONT>
<BR><FONT SIZE=3D2>&gt; To: maillists@summitmedia.com.ph; =
zope@zope.org</FONT>
<BR><FONT SIZE=3D2>&gt; Subject: RE: [Zope] mod_rewrite map</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Guess it was not clear as to what you want to =
do... if your trying to </FONT>
<BR><FONT SIZE=3D2>&gt; mod_rewite for a different virtual hosts but =
you are using the same </FONT>
<BR><FONT SIZE=3D2>&gt; mod_rewite you can do the same thing just =
change it a little.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Put your mod_rewite code in the file and =
include the file </FONT>
<BR><FONT SIZE=3D2>&gt; instead of the </FONT>
<BR><FONT SIZE=3D2>&gt; directory within each of your VH =
settings.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Include &quot;path_to_doc/file&quot;</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; am I getting closer to what you want to =
do?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; most Apache settings are really dynamic an =
flexible with how </FONT>
<BR><FONT SIZE=3D2>&gt; you can use them.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; SR</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; At 09:25 AM 12/21/2001 +0800, =
maillists@summitmedia.com.ph wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt;Thank you so much!</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;This can be a big help.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;However, this is just an alternative to =
having mod_rewrite </FONT>
<BR><FONT SIZE=3D2>&gt; in separate files.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;I am still thankful of your help.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;fritz &lt;www.mesedilla.com&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;senior systems administrator</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;summit interactive, inc.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;www.fhm.com.ph | www.femalenetwork.com | =
www.candymag.com</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;---</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;+basta ikaw Lord</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; From: Sherwood Robinson </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; [&lt;<A =
HREF=3D"mailto:srobinson@fredericksburg.com">mailto:srobinson@fredericks=
burg.com</A>&gt;<A =
HREF=3D"mailto:srobinson@frederi">mailto:srobinson@frederi</A></FONT>
<BR><FONT SIZE=3D2>&gt; cksburg.com]</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; Sent: Friday, December 21, 2001 01:14 =
AM</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; To: maillists@summitmedia.com.ph; =
zope@zope.org; Chris Withers</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; Subject: RE: [Zope] mod_rewrite =
map</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; I use Apache mod_rewite with VHM and =
have no problems at </FONT>
<BR><FONT SIZE=3D2>&gt; all.&nbsp; I use</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; separate config files for each =
Virtual Host.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; To do this just tell Apache in the =
bottom of your </FONT>
<BR><FONT SIZE=3D2>&gt; httpd.conf file to</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; process a folder.&nbsp; Any document =
in this folder will be</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; treated as a part of</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; the httpd.conf file</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; here is the httpd.conf line to =
add:</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; Include&nbsp; &quot;Path to =
folder&quot;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; inside this folder I store all =
virtual domain information in</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; separate files</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; per virtual domain named according to =
that domain.&nbsp; These are</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; simple text</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; files with the virtualhost command =
and directives including</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; the mod_rewite</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; commands for that virtual =
domain.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; Hope this helps!</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; SR</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; At 12:50 AM 12/21/2001 +0800, =
maillists@summitmedia.com.ph wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;Oh. I'm sorry I wasn't very =
clear.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;I currently have =
apache/mod_rewrite in front of zope/zeo.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;Thus, to lessen clutter on =
httpd.conf, I want to put all</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; rewrites in a</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;file and call it from =
there.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;My main problem comes when =
VirtualHostMonster is involved.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;rewritemap doesn't seem to work =
properly.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;If someone has implemented this, =
PLEASE help me. Thanks.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;fritz =
&lt;www.mesedilla.com&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;senior systems =
administrator</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;summit interactive, inc.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;www.fhm.com.ph | =
www.femalenetwork.com | www.candymag.com</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;---</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &gt;+basta ikaw Lord</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; =
----------------------------------------------------</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; Sherwood Robinson</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; Hostmaster</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; The Free Lance-Star/Internet =
Department</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; srobinson@fredericksburg.com</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; &lt;<A =
HREF=3D"http://www.fredericksburg.com" =
TARGET=3D"_blank">http://www.fredericksburg.com</A>&gt;<A =
HREF=3D"http://www.fredericksburg.com" =
TARGET=3D"_blank">http://www.fredericksburg.com</A></FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; 616 Amelia St.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; Fredericksburg, VA 22401</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; 540-374-5000 ext. 5657</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; =
----------------------------------------------------</FONT>
<BR><FONT SIZE=3D2>&gt; Sherwood Robinson</FONT>
<BR><FONT SIZE=3D2>&gt; Hostmaster</FONT>
<BR><FONT SIZE=3D2>&gt; The Free Lance-Star/Internet Department</FONT>
<BR><FONT SIZE=3D2>&gt; srobinson@fredericksburg.com</FONT>
<BR><FONT SIZE=3D2>&gt; <A HREF=3D"http://www.fredericksburg.com" =
TARGET=3D"_blank">http://www.fredericksburg.com</A></FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; 616 Amelia St.</FONT>
<BR><FONT SIZE=3D2>&gt; Fredericksburg, VA 22401</FONT>
<BR><FONT SIZE=3D2>&gt; 540-374-5000 ext. 5657</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C18BC2.68C7DED0--