我在CentOS上设置了一个apache服务器。我正在尝试添加SSL。我创建了证书和密钥,然后更新了/etc/httpd/conf.d/ssl.conf,使其具有以下配置:
/etc/httpd/conf.d/ssl.conf
#Where I put my cert
SSLCertificateFile /etc/pki/tls/certs/ca.crt
#where I put my key
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
然后我更新了/etc/httpd/conf/httpd.conf
/etc/httpd/conf/
Sinatra应用程序,Ubuntu 12
#config.ru
require 'sinatra/base'
require 'openssl'
require 'webrick'
require 'webrick/https'
class App1 < Sinatra::Base
get '/' do
'app1'
end
end
class App2 < Sinatra::Base
get '/' do
'app2'