mirror of https://github.com/apache/cloudstack.git
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:
parent
2a4ca1b9c7
commit
2c169bc02d
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue