apache_conf 基本的Auth Middleman和Heroku

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf 基本的Auth Middleman和Heroku相关的知识,希望对你有一定的参考价值。

# This is a snippet to add to middleman's config.ru file if you want to add basic auth to your middleman app on heroku
# NOTE: you need to stick this above the build script like shown below

use Rack::Auth::Basic, "Restricted Area" do |username, password|
  [username, password] == ['username', 'password']
end

# This part below is just what builds the static site. you only need to add lines 4 - 6 above any build command like shown below.
use Rack::TryStatic, :root => "build", :urls => %w[/], :try => ['.html', 'index.html', '/index.html']

以上是关于apache_conf 基本的Auth Middleman和Heroku的主要内容,如果未能解决你的问题,请参考以下文章

apache_conf 确认请求的特征(类似于https://github.com/laravel/framework/blob/5.5/src/Illuminate/Foundation/Auth/

apache_conf 基本的vhost

apache_conf 基本认证

apache_conf 基本认证

apache_conf 基本重写条件

apache_conf HTACCESS - 基本设置