nginx_config_generator 1.4 → 1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/nginx.erb +1 -1
- data/nginx_config_generator.gemspec +4 -4
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/nginx.erb
CHANGED
@@ -112,7 +112,7 @@ http {
|
|
112
112
|
|
113
113
|
<% if site['no_www'] %>
|
114
114
|
if ($host ~* "www") {
|
115
|
-
rewrite ^(.*)$ http://<%= site['server_name'].split.first %>$1 permanent;
|
115
|
+
rewrite ^(.*)$ http://<%= site['server_name'].split.first.sub(/^\./, '') %>$1 permanent;
|
116
116
|
break;
|
117
117
|
}
|
118
118
|
<% end %>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Nginx_config_generator-1.
|
2
|
+
# Gem::Specification for Nginx_config_generator-1.5
|
3
3
|
# Originally generated by Echoe
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = %q{nginx_config_generator}
|
7
|
-
s.version = "1.
|
8
|
-
s.date = %q{2007-10-
|
7
|
+
s.version = "1.5"
|
8
|
+
s.date = %q{2007-10-24}
|
9
9
|
s.summary = %q{}
|
10
10
|
s.email = %q{chris@ozmm.org}
|
11
11
|
s.homepage = %q{http://require.errtheblog.com/projects}
|
@@ -24,7 +24,7 @@ end
|
|
24
24
|
# require 'rubygems'
|
25
25
|
# require 'echoe'
|
26
26
|
#
|
27
|
-
# Echoe.new('nginx_config_generator', '1.
|
27
|
+
# Echoe.new('nginx_config_generator', '1.5') do |p|
|
28
28
|
# p.rubyforge_name = 'err'
|
29
29
|
# p.author = 'Chris Wanstrath'
|
30
30
|
# p.email = 'chris@ozmm.org'
|
metadata
CHANGED