Edmund Urbani wrote:
> Li wrote:
>> On 8/3/06, Gamefaqs Philippines <[EMAIL PROTECTED]> wrote:
>>> But wouldn't this be specific to only one application? Also, wouldn't
>>> this expose the real url of my site like
>>> http://www.xxx.xxx.xxx.xxx:8080/myapp/requesServ.do?uid=12345 instead
>>> of http://www.mydomain.com/requesServ.do?uid=12345 ?
>> Well, i realized that your webappp is Struts (I am also a Struts
>> developer ^_^).
>> About URI, the refreshing approach basically just redirect to your
>> struts application from apache home page.
>>
>> For after redirect, you will see
>> "http://www.xxx.xxx.xxx.xxx:8080/myapp"; instead of
>> "http://www.xxx.xxx.xxx.xxx/myapp";. But I dont see any difference
>> between the above two. what do you wanna hide from customer(user)? If
>> non tech user, they dont care how the URI looks like (based on real
>> life experience from customers).
>>
>> Or
>>
>> If you use mod_jk, this "view" issue can be solved and apache will
>> take care of static page processing which can reduce your java AS
>> workload.
>>
>> You can decide whether to use or not according to the work load
>> distribution need.
> 
> If you still want to use the mod_jk variant. Here's how:
> http://tomcat.apache.org/connectors-doc/howto/apache.html
> 
> Also, to get rid of the application context in the URL (judging from
> your example URL, you want to do this), I recommend changing the path
> attribute of the application's context to root (<Context path="/" ..>).
> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
> 
> 
Ah. Sorry. I missed the important part, where you said you had two
applications in one tomcat. They can't both have the root context then.
You could use 2 tomcat instances or (maybe) solve this with apache
httpd's mod_rewrite.

Handling the two domains however should not be to difficult with virtual
hosts in apache httpd.

 Edmund

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to