You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by sw...@apache.org on 2016/06/28 15:28:45 UTC

[11/15] git commit: updated refs/heads/master to e4ba640

SysVM various fixes to previous refactorings
* make CORS include a regular glob-matched one
* fix NameVirtualHost in CsApp.py as well
* even moar cleanups


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/91a8faac
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/91a8faac
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/91a8faac

Branch: refs/heads/master
Commit: 91a8faac316b93d165f3f316d4293ff454da1b67
Parents: 58bdb44
Author: Ronald van Zantvoort <ro...@pcextreme.nl>
Authored: Tue May 31 09:07:37 2016 +0200
Committer: Wido den Hollander <wi...@widodh.nl>
Committed: Tue Jun 7 13:03:10 2016 +0200

----------------------------------------------------------------------
 systemvm/patches/debian/config/etc/apache2/vhost.template    | 4 ++--
 systemvm/patches/debian/config/etc/init.d/cloud-early-config | 3 +++
 systemvm/patches/debian/config/opt/cloud/bin/cs/CsApp.py     | 1 +
 3 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/91a8faac/systemvm/patches/debian/config/etc/apache2/vhost.template
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/apache2/vhost.template b/systemvm/patches/debian/config/etc/apache2/vhost.template
index 24d8d60..043a286 100644
--- a/systemvm/patches/debian/config/etc/apache2/vhost.template
+++ b/systemvm/patches/debian/config/etc/apache2/vhost.template
@@ -83,8 +83,8 @@
 		Allow from 127.0.0.0/255.0.0.0 ::1/128
 	</Directory>
 
-    # Include CORS configuration if set
-    IncludeOptional /etc/apache2/cors.conf
+    # Include CORS configuration **IF SET**
+    Include /etc/apache2/[cC][oO][rR][sS].conf
 
 	#   SSL Engine Switch:
 	#   Enable/Disable SSL for this virtual host.

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/91a8faac/systemvm/patches/debian/config/etc/init.d/cloud-early-config
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/init.d/cloud-early-config b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
index 2103065..bc26766 100755
--- a/systemvm/patches/debian/config/etc/init.d/cloud-early-config
+++ b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
@@ -814,8 +814,11 @@ clean_ipalias_config() {
   rm -f /etc/apache2/sites-enabled/ipAlias*
   rm -f /etc/apache2/conf.d/vhost*.conf
   rm -f /etc/apache2/ports.conf
+  rm -f /etc/apache2/vhostexample.conf
   rm -f /etc/apache2/sites-available/default
   rm -f /etc/apache2/sites-available/default-ssl
+  rm -f /etc/apache2/sites-enabled/default
+  rm -f /etc/apache2/sites-enabled/default-ssl
 
   # New
   rm -f /etc/apache2/sites-enabled/vhost-*.conf

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/91a8faac/systemvm/patches/debian/config/opt/cloud/bin/cs/CsApp.py
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsApp.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsApp.py
index 496a0e7..9762e04 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsApp.py
+++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsApp.py
@@ -49,6 +49,7 @@ class CsApache(CsApp):
         file.search("<VirtualHost.*:443>", "\t<VirtualHost %s:443>" % (self.ip))
         file.search("Listen .*:80", "Listen %s:80" % (self.ip))
         file.search("Listen .*:443", "Listen %s:443" % (self.ip))
+        file.search("NameVirtualHost .*:80", "NameVirtualHost %s:80" % (self.ip))
         file.search("ServerName.*", "\tServerName %s.%s" % (self.config.cl.get_type(), self.config.get_domain()))
         if file.is_changed():
             file.commit()