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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3a82ecd7e8909e471a8cd85279169faf77c5656
4
- data.tar.gz: d26080f7cf935db4d9cb1e3793a158018d92fd2c
3
+ metadata.gz: 84248ab1948745a43c470fa5e103b6a64e2b09fc
4
+ data.tar.gz: 628bb8be60d61daf818421bb2c33df2f54469bcb
5
5
  SHA512:
6
- metadata.gz: 070024c271854b1dc3e4d1573a0a1dfc8bb8a158b554c9d4c94761ab4491eeb7a3e6bc79be823716bfbcc82d3b808c5e0583c06ac4b812e21ddd0c3b975f54ea
7
- data.tar.gz: 9c329774ae85a63bb3f6d09f915a54927f2e5acc118c3473dc3adf4eb6c43c9deb33ecf3d60eca74b348557938cc25bdbcd62192e039fc152fcb200ed8d5f024
6
+ metadata.gz: ba7b7de09b325ca3122def188a206607b56f8982b4f9c0069fb52414b7aaf72b910e48232507255fac4b5f2146ee41e9497601d8644f27a2a06800d0b71a19aa
7
+ data.tar.gz: 2939cd28ac51329c2589032a0668d5c883328299304792c0f1996143cdc7c3df8393da44c8e963e6f29679440496f6523fa9a947ff92baad288a9a2933801bdd
@@ -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(/ServerName (?<server_name>.*)/)[:server_name]
22
+ @server_name = @config_content.match(/^\s+ServerName (?<server_name>.*)/)[:server_name]
23
23
 
24
- if @config_content.match(/ServerAlias/)
25
- @server_alias = @config_content.match(/ServerAlias (?<names>.*)/)[:names].split(" ")
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?
@@ -1,3 +1,3 @@
1
1
  module ZabbixVhost
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zabbix_vhost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino Bonetti