You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David <dn...@gmail.com> on 2008/10/07 04:35:11 UTC
[users@httpd] Serve static files from Apache 2.2.9 question
Hello All,
I'm trying to set up Apache 2.2.9 web server on Windows to front, in this
case, a Tomcat environment. What I would like to do is direct certain file
types, for example .css files, to Apache and proxy the rest to Tomcat. I've
got Apache proxing all but the .css files using the following.
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPassMatch ^(/.*\.css)$ !
ProxyPass /myapp http://example.com:port/myapp
ProxyPassReverse /myapp http://example.com:port/myapp
Now what I need to do is direct the .css files to Apache and that's where
I'm not sure what to do next. Does anyone have any suggestions?
Thanks for your help,
David
Re: [users@httpd] Serve static files from Apache 2.2.9 question
Posted by Apache Indian <ap...@yopmail.com>.
add a documentroot for your static files in your configuration, something
like :
DocumentRoot "C:/Program Files/Apache Software Foundation/Tomcat
6.0/webapps/<your-webapp-id>"
David Williams-15 wrote:
>
> Hello All,
>
> I'm trying to set up Apache 2.2.9 web server on Windows to front, in this
> case, a Tomcat environment. What I would like to do is direct certain
> file
> types, for example .css files, to Apache and proxy the rest to Tomcat.
> I've
> got Apache proxing all but the .css files using the following.
>
> ProxyRequests Off
>
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy>
>
> ProxyPassMatch ^(/.*\.css)$ !
>
> ProxyPass /myapp http://example.com:port/myapp
> ProxyPassReverse /myapp http://example.com:port/myapp
>
> Now what I need to do is direct the .css files to Apache and that's where
> I'm not sure what to do next. Does anyone have any suggestions?
>
> Thanks for your help,
>
> David
>
>
--
View this message in context: http://www.nabble.com/Serve-static-files-from-Apache-2.2.9-question-tp19850061p20042560.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org