[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

Re: [EMAIL PROTECTED] Using mod_rewrite with mod_jk2

2005-08-12 Thread brian papa
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 RewriteEngine on RewriteCond %{HTTP_HOST} (.*).mysite.com$ RewriteRule /profile

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: Excellent Noah, it worked

[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