Created
October 24, 2015 06:35
-
-
Save igara/41d2de3adce685e1252f to your computer and use it in GitHub Desktop.
[メモ]H2OでHTTP/2を使ってみる ref: http://qiita.com/igara/items/b3f0c8af1eda9866101c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ openssl genrsa 2048 > server.key | |
$ openssl req -new -key server.key > server.csr | |
$ openssl x509 -days 3650 -req -signkey server.key < server.csr > server.crt | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo h2o -m daemon -c h2o.conf | |
sudo h2o -m daemon -c proxy.conf | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hosts: | |
"example.com": | |
listen: | |
port: 8000 | |
paths: | |
/: | |
file.dir: /home/vagrant/web/slack_rack_php/public | |
redirect: | |
url: /index.php/ | |
internal: YES | |
status: 307 | |
file.custom-handler: | |
extension: .php | |
fastcgi.connect: | |
host: 127.0.0.1 | |
port: 9000 | |
type: tcp | |
access-log: /home/vagrant/access-log | |
error-log: /home/vagrant/error-log | |
pid-file: /home/vagrant/pid-file | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen: | |
port: 8080 | |
ssl: | |
certificate-file: /home/vagrant/server.crt | |
key-file: /home/vagrant/server.key | |
hosts: | |
default: | |
paths: | |
/: | |
proxy.reverse.url: http://127.0.0.1:8000/ | |
access-log: /home/vagrant/accessre-log | |
error-log: /home/vagrant/errorre-log | |
pid-file: /home/vagrant/pidre-file | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment