You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jim Weir <ja...@hotmail.com> on 2006/09/07 15:08:24 UTC
Configuring/Securing mod_proxy_ajp
To all,
I am using mod_proxy_ajp w/ Apache 2.2.3/Tomcat 5.5.4
The problem I have with this is that I lose all my formatting from a site
build with Forrest. It seems to be returning only HTML and dropping all the
CSS...Forrest uses XML/XSLT extensively...
(http://forrest.apache.org/)
When I point the URL to a directory to a java Servlet based site everything
is fine.
Why would it do this? Should I enable a certain return type in the
VirtualHost?
<VirtualHost *:80>
ServerName www.mysite.org
ServerAdmin 4@yahoo.com
ServerAlias mysite.org *.mysite.org
DocumentRoot /usr/opt/tomcat/webapps/mysite
ErrorLog logs/mysite.org-error_log
CustomLog logs/mysite.org-access_log common
<Directory "/usr/opt/tomcat/webapps/mysite">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Proxy balancer://mycluster2>
BalancerMember ajp://www.mysite.org:8009/mysite
</Proxy>
<Location /mysite>
ProxyPass balancer://mycluster2
</Location>
</VirtualHost>
I am also wondering if there are any security problems with this config.
Thank you,
Jim
_________________________________________________________________
Call friends with PC-to-PC calling -- FREE
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Configuring/Securing mod_proxy_ajp
Posted by Bill Barker <wb...@wilshire.com>.
"Jim Weir" <ja...@hotmail.com> wrote in message
news:BAY104-F11C3C139E647A6FDAA668DC6360@phx.gbl...
> To all,
>
> I am using mod_proxy_ajp w/ Apache 2.2.3/Tomcat 5.5.4
>
> The problem I have with this is that I lose all my formatting from a site
> build with Forrest. It seems to be returning only HTML and dropping all
> the CSS...Forrest uses XML/XSLT extensively...
>
> (http://forrest.apache.org/)
>
> When I point the URL to a directory to a java Servlet based site
> everything is fine.
>
> Why would it do this? Should I enable a certain return type in the
> VirtualHost?
>
> <VirtualHost *:80>
> ServerName www.mysite.org
> ServerAdmin 4@yahoo.com
> ServerAlias mysite.org *.mysite.org
> DocumentRoot /usr/opt/tomcat/webapps/mysite
> ErrorLog logs/mysite.org-error_log
> CustomLog logs/mysite.org-access_log common
> <Directory "/usr/opt/tomcat/webapps/mysite">
> Options FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> <Proxy balancer://mycluster2>
> BalancerMember ajp://www.mysite.org:8009/mysite
> </Proxy>
> <Location /mysite>
> ProxyPass balancer://mycluster2
> </Location>
> </VirtualHost>
>
With configuration, you have http://www.mysite.org/ is understood by Apache
to be the same as http://www.mysite.org/mysite/. I'm guessing that the
problem is with how you are specifying relative links to you .css files.
>
> I am also wondering if there are any security problems with this config.
>
> Thank you,
> Jim
>
> _________________________________________________________________
> Call friends with PC-to-PC calling -- FREE
> http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org