From 55112cf2ed22af6770bab7d5b663865e7d9e0bc8 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Fri, 4 Mar 2016 10:25:03 +0100 Subject: [PATCH] Less awkward htacess rendering --- config.rb | 8 ++------ source/{.htaccess.apache.erb => .htaccess.erb} | 2 ++ 2 files changed, 4 insertions(+), 6 deletions(-) rename source/{.htaccess.apache.erb => .htaccess.erb} (97%) diff --git a/config.rb b/config.rb index c172730..140e31d 100644 --- a/config.rb +++ b/config.rb @@ -152,6 +152,8 @@ ready do @articles = articles end end + + proxy '/.htaccess', '/.htaccess.html', ignore: true end ### @@ -208,7 +210,6 @@ set :js_dir, 'javascripts' set :images_dir, 'images' set :partials_dir, 'partials' - # Build-specific configuration configure :build do # For example, change the Compass output style for deployment @@ -229,11 +230,6 @@ configure :build do # set :http_prefix, "/Content/images/" end -after_build do - # rename file after build - File.rename 'build/.htaccess.apache', 'build/.htaccess' -end - activate :deploy do |deploy| deploy.method = :rsync deploy.host = 'holgerjust.de' diff --git a/source/.htaccess.apache.erb b/source/.htaccess.erb similarity index 97% rename from source/.htaccess.apache.erb rename to source/.htaccess.erb index 12a1ee3..dcdb8bc 100644 --- a/source/.htaccess.apache.erb +++ b/source/.htaccess.erb @@ -1,6 +1,8 @@ --- noindex: true layout: false +directory_index: false +content_type: text/plain --- # Aggressively cache assets ExpiresActive On