volume-upload added a upload url redirect in apache conf

rewrite engine is on only in the case fo SSVM
This commit is contained in:
Rajani Karuturi 2015-01-09 09:16:00 +05:30
parent 2a4ca1b9c7
commit 2c169bc02d
2 changed files with 9 additions and 0 deletions

View File

@ -168,5 +168,10 @@
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
RewriteEngine Off
RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_METHOD} =POST
RewriteRule ^/upload/(.*) http://localhost:8210/upload?uuid=$1 [P,L]
</VirtualHost>
</IfModule>

View File

@ -1155,6 +1155,10 @@ setup_secstorage() {
setup_sshd $ETH0_IP "eth0"
fi
setup_apache2 $ETH2_IP
a2enmod proxy
a2enmod proxy_http
[ -f /etc/apache2/sites-available/default-ssl ] && sed -i -e "s/RewriteEngine Off/RewriteEngine On/" /etc/apache2/sites-available/default-ssl
service apache2 restart
disable_rpfilter
enable_fwding 0