LoginSignup
1
1

More than 5 years have passed since last update.

【SSL】設定について

Posted at

いじったファイル

- ①/private/etc/apache2/extra/httpd-vhosts.conf
- ②/private/etc/apache2/extra/httpd-ssl.conf
- ③/private/etc/apache2/httpd.conf

apache関連コマンド

- sudo apachectl configtest
- sudo apachectr restart

手順

①vatualhostの追加
②sslの情報も追加

<VirtualHost *:443> //ここ443に変更してvhosts.confに追加したものをコピペ
//(ここから)
    ServerAdmin hanako@tanaka.com
    DocumentRoot "/Users/hanako/Documents/works/vhosts/kintone-js/www"
    ServerName hanako.tanaka.com 
    ErrorLog "/Users/hanako/Documents/works/vhosts/kintone-js/err_log"
    CustomLog "/Users/hanako/Documents/works/vhosts/kintone-js/acc_log" common
        <Directory "/Users/hanako/Documents/works/vhosts/kintone-js/www">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
Options FollowSymLinks
Options +ExecCGI
        </Directory>
//(ここまで)

//以下はSSLの情報をコピペでディレクトリを上とあわせる!
SSLEngine on
SSLCertificateFile /Users/hanako/Documents/works/vhosts/kintone-js/ssl/20150323.crt
SSLCertificateKeyFile /Users/hanako/Documents/works/vhosts/kintone-js/ssl/20150323.key
SSLCertificateChainFile /Users/hanako/Documents/works/vhosts/kintone-js/ssl/20150323_intermediate.crt

ちょとその他思い出せないのであとで追記予定。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1