cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhaisaab <>
Subject [GitHub] cloudstack pull request: [MERGE] Browser based template or volume ...
Date Tue, 28 Apr 2015 08:19:19 GMT
Github user bhaisaab 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 --
    looks like /upload will be available only for localhost? will this cause an issue?

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