cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karuturi <>
Subject [GitHub] cloudstack pull request: [MERGE] Browser based template or volume ...
Date Tue, 28 Apr 2015 09:04:10 GMT
Github user karuturi commented on a diff in the pull request:
    --- Diff: systemvm/patches/debian/config/etc/init.d/cloud-early-config ---
    @@ -1156,6 +1156,36 @@ setup_secstorage() {
       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&/"
    +        sed -i -e "s/<\/VirtualHost>/RewriteRule ^\/upload\/(.*) http:\/\/\/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 or file a JIRA ticket
with INFRA.

View raw message