Solved

How to get apache to serve files from one location, but send posts to another location

Posted on 2011-03-12
1
335 Views
Last Modified: 2013-12-02
Hello,

I have an apache web server, which serves files from my subversion repository, and proxies to my tomcat application server.

I would like, when a user gets a file, apache serves it directly, but if the user posts back a file to the sameUrl, to be able to send it Tomcat for processing.

I tried this:
<Location /doc>
      <LimitExcept POST>
            Allow from all
            ProxyPass http://localhost/svnLocal
      </LimitExcept>
      <Limit POST>
            Allow from all
            ProxyPass http://127.0.0.1:8080/myApp/servlet
      </Limit>
</Location>

Either proxy works well for me, but not both. It seems that gets and posts always end up being passed to the same server. I found this, http://stackoverflow.com/questions/4994803/apache-nginx-proxy-post-requests-to-remote-server-handle-options-requests-local, where someone found a similiar issue and resolved it with Nginx, but I do not want to give up on my apache  web server.

Anyone now how I could resolve this with standard apache configuration? Obviously, I could let all the requests go through to my tomcat server, then have tomcat performs http requests back to the webserver to serve the gets, but that would be horrendously inefficient!
0
Comment
Question by:GregoryCoburn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
GregoryCoburn earned 0 total points
ID: 35117993
Hello,

Seems I have cracked it myself. I describe the solution here!

Gregory

http://gregorycoburn.wordpress.com/2011/03/12/making-files-on-my-webserver-readwrite/
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
junit test for void methods using mockito 4 518
clicking to find my folders on wamp 8 42
HTTPS for signup & login - HTTP for all other pages 10 80
Reverse Proxy problem 3 30
-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question