mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Feature #1109: Self service support in oZones server
Needs testing & GUI extension
This commit is contained in:
parent
fbbce209d5
commit
deb5e8d025
@ -28,12 +28,20 @@ module OZones
|
||||
zone.vdcs.all.each{|vdc|
|
||||
htaccess << "RewriteRule ^#{vdc.NAME} " +
|
||||
"#{zone.ENDPOINT} [P]\n"
|
||||
|
||||
if zone.SUNSENDPOINT != nil
|
||||
htaccess << "RewriteRule ^sunstone_#{vdc.NAME}/(.+) " +
|
||||
"#{zone.SUNSENDPOINT}/$1 [P]\n"
|
||||
htaccess << "RewriteRule ^sunstone_#{vdc.NAME} " +
|
||||
"#{zone.SUNSENDPOINT}/ [P]\n"
|
||||
end
|
||||
|
||||
if zone.SELFENDPOINT != nil
|
||||
htaccess << "RewriteRule ^self_#{vdc.NAME}/(.+) " +
|
||||
"#{zone.SELFENDPOINT}/$1 [P]\n"
|
||||
htaccess << "RewriteRule ^self_#{vdc.NAME} " +
|
||||
"#{zone.SELFENDPOINT}/ [P]\n"
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,6 +30,7 @@ module OZones
|
||||
property :ONEPASS, String, :required => true
|
||||
property :ENDPOINT, String, :required => true
|
||||
property :SUNSENDPOINT, String
|
||||
property :SELFENDPOINT, String
|
||||
|
||||
has n, :vdcs
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user