I currently use Tomcat 4.1.18 with Apache. I have all wildcard domains mapped to my Controller servlet. When a request is made to the servlet and I call request.getServerName(), the sub-domain is being truncated from the Full Qualified Domain Name. Anyone know of a solution/configuration that will allow my servlet to see the original FQDN that made the request.
For example. If a user hits bob.domain.com. I want request.getServerName() to return "bob.domain.com"... right now it returns "domain.com".


Yes, the server name in Apache is "domain.com". There is a serveralias to
*.domain.com.

Yes, server.xml is configured as <Host name="domain.com"... />

I am familiar with the <Alias></Alias> tags however having tested <Alias>*.domain.com</Alias> I know that it will not work.

Is there a way to preserve these wildcard subdomains such that
getServerName() will show them?

Any help is appreciated.

Thanks,
Tyler


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



Reply via email to