Github user karuturi commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/199#discussion_r29224917 --- Diff: systemvm/patches/debian/config/etc/init.d/cloud-early-config --- @@ -1156,6 +1156,36 @@ setup_secstorage() { fi setup_apache2 $ETH2_IP + log_it "setting up apache2 for post upload of volume/template" + a2enmod proxy + a2enmod proxy_http + a2enmod headers + + SSL_FILE="/etc/apache2/sites-available/default-ssl" + PATTERN="RewriteRule ^\/upload\/(.*)" + CORS_PATTERN="Header set Access-Control-Allow-Origin" + if [ -f $SSL_FILE ]; then + if grep -q "$PATTERN" $SSL_FILE ; then + log_it "rewrite rules already exist in file $SSL_FILE" + else + log_it "adding rewrite rules to file: $SSL_FILE" + sed -i -e "s/<\/VirtualHost>/RewriteEngine On \n&/" $SSL_FILE + sed -i -e "s/<\/VirtualHost>/RewriteCond %{HTTPS} =on \n&/" $SSL_FILE + sed -i -e "s/<\/VirtualHost>/RewriteCond %{REQUEST_METHOD} =POST \n&/" $SSL_FILE + sed -i -e "s/<\/VirtualHost>/RewriteRule ^\/upload\/(.*) http:\/\/127.0.0.1:8210\/upload?uuid=\$1 [P,L] \n&/" $SSL_FILE --- End diff -- nope. the rewrite is to localhost
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---