Re: Serve static files from Apache 2.2.9 question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux