[EMAIL PROTECTED] mod rewrite conditions question

2005-09-22 Thread brian papa
I'm using mod rewrite and it's working just fine and dandy. But, I want to deploy it in different enviornments that use different virtual hosts. So right now I have the Rewrite Condition - RewriteCond %{HTTP_HOST} (.*).bpapa.mysite.com For my local machine, which works fine but that's kinda ugly.

Re: [EMAIL PROTECTED] Using mod_rewrite with mod_jk2

2005-08-12 Thread brian papa
Actually I just realized, I've got one more question. How does this all work with DNS? Is Wildcard DNS the best approach? B/C i'm assuming DNS isn't gonna have a clue what the IP is going to be for say user1.mysite.com... On 8/12/05, brian papa <[EMAIL PROTECTED]> wrote:

Re: [EMAIL PROTECTED] Using mod_rewrite with mod_jk2

2005-08-12 Thread brian papa
ah <[EMAIL PROTECTED]> wrote: > On Fri, Aug 12, 2005 at 10:32:41AM -0400, brian papa wrote: > > Still having the same problem... right now my rewrite stuff looks like this > > - > > > > LoadModule rewrite_module modules/mod_rewrite.so > > RewriteEngin

Re: [EMAIL PROTECTED] Using mod_rewrite with mod_jk2

2005-08-12 Thread brian papa
ewriteEngine On > RewriteCond %{HTTP_HOST} (.*).mysite.com$ > RewriteRule /profile http://mysite.com/profile.jsp?u=%N [L] > > HTH > > Dan > > > On 12/08/2005, at 8:28 AM, brian papa wrote: > > > I'm trying to set it up so that users of my site can ente

[EMAIL PROTECTED] Using mod_rewrite with mod_jk2

2005-08-11 Thread brian papa
I'm trying to set it up so that users of my site can enter a url like "username.mysite.com/profile" that will rewrite to "mysite.com/profile.jsp?u=username", or something of that nature. From what I understand, using mod_rewrite is the best way to do this. I've added the following to my httpd.conf