zabbix_vhost 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zabbix_vhost/config.rb +3 -3
- data/lib/zabbix_vhost/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84248ab1948745a43c470fa5e103b6a64e2b09fc
|
4
|
+
data.tar.gz: 628bb8be60d61daf818421bb2c33df2f54469bcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba7b7de09b325ca3122def188a206607b56f8982b4f9c0069fb52414b7aaf72b910e48232507255fac4b5f2146ee41e9497601d8644f27a2a06800d0b71a19aa
|
7
|
+
data.tar.gz: 2939cd28ac51329c2589032a0668d5c883328299304792c0f1996143cdc7c3df8393da44c8e963e6f29679440496f6523fa9a947ff92baad288a9a2933801bdd
|
data/lib/zabbix_vhost/config.rb
CHANGED
@@ -19,10 +19,10 @@ module ZabbixVhost
|
|
19
19
|
@config_content = File.read(@file_path)
|
20
20
|
## Controlliamo se siamo in apache
|
21
21
|
if_apache do
|
22
|
-
@server_name = @config_content.match(
|
22
|
+
@server_name = @config_content.match(/^\s+ServerName (?<server_name>.*)/)[:server_name]
|
23
23
|
|
24
|
-
if @config_content.match(
|
25
|
-
@server_alias = @config_content.match(
|
24
|
+
if @config_content.match(/^\s+ServerAlias/)
|
25
|
+
@server_alias = @config_content.match(/^\s+ServerAlias (?<names>.*)/)[:names].split(" ")
|
26
26
|
end
|
27
27
|
|
28
28
|
@ssl_active = !@config_content.match(/443/).nil?
|
data/lib/zabbix_vhost/version.rb
CHANGED