The virtual host below forwards all traffic to a web app except for some special addresses. This generally works including GET requests that are passed to the web app. However, when I send a POST request to the web app, apache sends a 302 to the same address according to the log.
For testing purposes, the weba app (=internal01.net) resolves to 127.0.0.1 . Is this the problem?
Thanks for any hints,
Hugo
<VirtualHost *:443>
RewriteEngine on
## Rewrite logging is just for debugging
#RewriteLog /var/log/apache2/rewrite_log
#RewriteLogLevel 5
RewriteCond %{HTTP_HOST} ^(.+)\.example\.net
RewriteRule ^/$ http://internal01.net:8080/global/applaunch?cid=%1 [qsappend,proxy,last]
RewriteCond %{HTTP_HOST} ^(.+)\.example\.net
RewriteRule ^/global/(.*) http://internal01.net:8080/global/$1?cid=%1 [qsappend,proxy,last]
RewriteCond /var/www%{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [last]
RewriteRule ^/static/(.*) /static/$1 [last]
# THIS RULE SEEMS TO WORK ONLY FOR GET REQUESTS:
RewriteRule ^/(.*) http://internal01.net:8080/$1 [proxy,last]
SSLEngine on
SSLCertificateFile .....crt
SSLCertificateKeyFile ......key
SSLCertificateChainFile ......crt
</VirtualHost>