Age Old Question of Wildcards

2004-10-07 Thread Mark van Wyk
Hi there,

SUBJECT: Subdomain Wildcards

I've seen this question posted all over the Internet and searched and read
until blue in the face - alas without a response. Please could someone
kindly direct me to a resource that answers these problems; or please answer
the questions below.

1. I know you can use the ServerAlias/ tag in Apache's httpd.conf file to
point subdomain wildcards. Can it be done in Tomcat Standalone via the
server.xml file?

2. I've seen folk rewrite PrefixMapper.java and rewrite bits of Tomcat to
take care of this. Is this a recommended approach?

3. If there are any Tomcat developers out there, do you think that a version
of Tomcat that supports wildcards in server.xml may come out soon?

Looking forward to your response,

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 2004/09/28
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Age Old Question of Wildcards

2004-10-07 Thread Shapira, Yoav

Hi,

2. I've seen folk rewrite PrefixMapper.java and rewrite bits of Tomcat
to
take care of this. Is this a recommended approach?

It's usually not recommended to customize the server unless you really
have to.  Nonetheless, we try to make it easy to customize and extend,
and this is an advantage of Tomcat over most other servers.

3. If there are any Tomcat developers out there, do you think that a
version
of Tomcat that supports wildcards in server.xml may come out soon?

You can rest assured of a couple of things in this area:
- Many, if not most, Tomcat developers are on this list.
- If any one Tomcat developer thought this was an urgent or
high-priority issue, it'd be getting attention.

Beyond that, you need to be a bit more specific about where you want
wildcard.  I assume from the first part of your post (not quoted above)
that you mean the Alias directive on the Host, which is documented at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Host%20
Name%20Aliases.

If you're talking about another field or attribute, which one(s)?

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Age Old Question of Wildcards

2004-10-07 Thread Mark van Wyk
Hi Yoav,

I certainly do mean the alias/ directive within host/. Please put a good
word in for me.

Thanks,

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 07 October 2004 02:15 PM
To: Tomcat Users List
Subject: RE: Age Old Question of Wildcards


Hi,

2. I've seen folk rewrite PrefixMapper.java and rewrite bits of Tomcat
to
take care of this. Is this a recommended approach?

It's usually not recommended to customize the server unless you really
have to.  Nonetheless, we try to make it easy to customize and extend,
and this is an advantage of Tomcat over most other servers.

3. If there are any Tomcat developers out there, do you think that a
version
of Tomcat that supports wildcards in server.xml may come out soon?

You can rest assured of a couple of things in this area:
- Many, if not most, Tomcat developers are on this list.
- If any one Tomcat developer thought this was an urgent or
high-priority issue, it'd be getting attention.

Beyond that, you need to be a bit more specific about where you want
wildcard.  I assume from the first part of your post (not quoted above)
that you mean the Alias directive on the Host, which is documented at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Host%20
Name%20Aliases.

If you're talking about another field or attribute, which one(s)?

Yoav



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 2004/09/28
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 2004/09/28
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Age Old Question of Wildcards

2004-10-07 Thread Shapira, Yoav

Hi,

I certainly do mean the alias/ directive within host/.

OK.  What behavior would you like to see for wildcards in the alias
directive?

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Age Old Question of Wildcards

2004-10-07 Thread Mark van Wyk
Hi Yoav,

Thanks for asking. I'm thinking something similar to what happens in the
Apache httpd.conf file... If I remember correctly, the Apache ServerAlias/
tag allows wildcards.

Basically, I'm assuming that no one will want to literally call their domain
*.mydomain.com and therefore, I'd like Tomcat to interpret the * as a
wildcard and point it to the relevant context.

I've basically managed to set up a wildcard subdomain DNS record and now I
want Tomcat to be able to deal with it too.

Example:

* I have a web site on a shared hosting platform
* I have the domain freehomepages.com
* I have a *.freehomepages.com DNS record pointing all requests to my server
* I setup Tomcat to alias*.freehomepages.net/alias to point to the
freehomepages.com context
* The web app reads the domain, runs it through the database and displays
appropriate content for that database.

Thanks,

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 07 October 2004 06:55 PM
To: Tomcat Users List
Subject: RE: Age Old Question of Wildcards


Hi,

I certainly do mean the alias/ directive within host/.

OK.  What behavior would you like to see for wildcards in the alias
directive?

Yoav



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 2004/09/28
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 2004/09/28
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Age old question...

2002-06-27 Thread August Detlefsen


--- Milt Epstein [EMAIL PROTECTED] wrote:
 On 26 Jun 2002, Keith Pemberton wrote:
 
 Well, I'm not sure mod_jk will be any different.  And is this any
 more
 than a minor aesthetic issue?

Not when most of your users can barely type one / , much less two! 


 FWIW, here's something a bit weird, I tried this on a machine where I
 have web_app and tomcat 4.0.3 set up, the first time I tried
 /examples, I got a 404 Not Found error.  Then I tried /examples/ and
 it worked, I got the directory listing of that directory.  Then I
 tried /examples again, and it kept working, adding the trailing /
 itself!  When I try it to tomcat standalone, it works both ways.

Did your browser add the trailing slash or did the server? 

I have tried to find a solution for this using mod_rewrite, but webapp
is overriding all of my rewites. If anyone has a solution I would
really like to know!

-August



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Age old question...

2002-06-27 Thread Milt Epstein

On Thu, 27 Jun 2002, August Detlefsen wrote:

 --- Milt Epstein [EMAIL PROTECTED] wrote:
  On 26 Jun 2002, Keith Pemberton wrote:
 
  Well, I'm not sure mod_jk will be any different.  And is this any
  more
  than a minor aesthetic issue?

 Not when most of your users can barely type one / , much less two!

Maybe you want to look into mod_rewrite then :-).


  FWIW, here's something a bit weird, I tried this on a machine where I
  have web_app and tomcat 4.0.3 set up, the first time I tried
  /examples, I got a 404 Not Found error.  Then I tried /examples/ and
  it worked, I got the directory listing of that directory.  Then I
  tried /examples again, and it kept working, adding the trailing /
  itself!  When I try it to tomcat standalone, it works both ways.

 Did your browser add the trailing slash or did the server?

Not really sure, and it's hard to tell from the logs.


 I have tried to find a solution for this using mod_rewrite, but webapp
 is overriding all of my rewites. If anyone has a solution I would
 really like to know!

Oh, I see you've already thought about mod_rewrite -- guess you're
serious about this, eh? :-).  I'm not that familiar with mod_rewrite
-- it can get pretty complicated -- but I'd think there'd be some way
to do this with all it can do.

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Age old question...

2002-06-27 Thread Liam Morley

I'm not sure if this is /exactly/ the same as your problem, but 
hopefully it helps. When I first started worrying about using connectors 
and mod_rewrite etc., I had a problem with mod_webapp (which I was using 
at the time) getting called before mod_rewrite. I was told on an apache 
forum that apache httpd loads modules from the bottom up, so the 
LoadModule command for mod_rewrite has to be below mod_webapp. That way, 
you can have the URL rewritten by mod_rewrite first in order for 
mod_webapp to understand it.

For reference's sake, here's the url for the question posted:
http://www.tek-tips.com/viewthread.cfm?SQID=171381SPID=65page=1CFID=72231716CFTOKEN=10718455

Liam Morley

August Detlefsen wrote:

--- Milt Epstein [EMAIL PROTECTED] wrote:
  

On 26 Jun 2002, Keith Pemberton wrote:

Well, I'm not sure mod_jk will be any different.  And is this any
more
than a minor aesthetic issue?



Not when most of your users can barely type one / , much less two! 


  

FWIW, here's something a bit weird, I tried this on a machine where I
have web_app and tomcat 4.0.3 set up, the first time I tried
/examples, I got a 404 Not Found error.  Then I tried /examples/ and
it worked, I got the directory listing of that directory.  Then I
tried /examples again, and it kept working, adding the trailing /
itself!  When I try it to tomcat standalone, it works both ways.



Did your browser add the trailing slash or did the server? 

I have tried to find a solution for this using mod_rewrite, but webapp
is overriding all of my rewites. If anyone has a solution I would
really like to know!

-August



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



  




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]