Okay here follows my config, I've configured multiple domains:
Forexample you can see at some point I append something like /zeuz to
the context, thats because in my filtermapping I've specfied that wicket
should only bind to /zeuz also if you have images served by tomcat you
need to forward that too. This is running on ubuntu server gutsy gibbon
btw.. Please ask if there are questions
NameVirtualHost
*
<VirtualHost *:*
>
ServerName
domain.dk
ServerAlias
www.domain.dk
ServerAlias
www.domain.ath.cx
ServerAlias
domain.ath.cx
ServerAdmin
[EMAIL PROTECTED]
DocumentRoot
/var/www/SimpleFront
LogLevel
warn
CustomLog /var/log/apache2/simplefronaccess.log
combined
</VirtualHost>
<VirtualHost *:*
>
ServerName
beta.domain.dk
ServerAlias
*.beta.domain.dk
ServerAlias
*.beta.domain.cx
ServerAlias
beta.domain.ath.cx
ServerAdmin
[EMAIL PROTECTED]
ProxyPass /images
http://10.0.0.2:8180/context/images
ProxyPass /
http://10.0.0.2:8180/context/zeuz/
ProxyPassReverse /
http://10.0.0.2:8180/context/zeuz/
ProxyPassReverseCookiePath /context
/
<Proxy
*>
Order
deny,allow
Allow from
all
</Proxy>
</VirtualHost>
<VirtualHost *:*
>
ServerName
forum.domain.dk
ServerAlias
*.forum.domain.dk
ServerAlias
*.forum.domain.ath.cx
ServerAlias
forum.domain.ath.cx
ServerAdmin
[EMAIL PROTECTED]
ProxyPass /jforum-2.1.8/templates/default/images/
http://10.0.0.2:8180/jforum-2.1.8/templates/default/images/
ProxyPass /jforum-2.1.8/templates/default/styles/
http://10.0.0.2:8180/jforum-2.1.8/templates/default/styles/
ProxyPass /jforum-2.1.8/
http://10.0.0.2:8180/jforum-2.1.8/
ProxyPass /
http://10.0.0.2:8180/context/
ProxyPassReverse /
http://10.0.0.2:8180/context/
ProxyPassReverseCookiePath /context
/
<Proxy
*>
Order
deny,allow
Allow from
all
</Proxy>
</VirtualHost>
<VirtualHost *:*
>
ServerName
domain.com
ServerAlias
*.domain.com
ProxyPass /
http://10.0.0.2:8180/context/
ProxyPassReverse /
http://10.0.0.2:8180/context/
<Proxy
*>
Order
deny,allow
Allow from
all
</Proxy>
</VirtualHost>
From tomcat config, server.xml (no need to change defaults..)
<Connector port="8180"
maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false" redirectPort="8443"
acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
James Carman wrote:
On Thu, Mar 27, 2008 at 8:49 AM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
I'll send my config once I get near my server later today:) It is
actually working without the connector setup in tomcat.
And I think you can even get it to work with connection pooling using
the new proxy mod.
Please do! I really hated having to add that other connector. I
thought it was quite "hacky". Thanks!
p.s. I am keeping this discussion in the "open" since it could be of
some use to others. Sorry to hijack someone else's thread for my own,
but the subject is somewhat related. :)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]