aa763c15c15f6dba465f54d2411eec64deb1d1e5
Linux/Gollum.md
| ... | ... | @@ -56,3 +56,21 @@ WantedBy=multi-user.target |
| 56 | 56 | # systemctl enable gollum@apache
|
| 57 | 57 | # systemctl status gollum@apache
|
| 58 | 58 | ```
|
| 59 | +
|
|
| 60 | +- バーチャルホスト設定 /etc/httpd/conf.d/gollum.conf
|
|
| 61 | +```
|
|
| 62 | +<VirtualHost *:80 *:443>
|
|
| 63 | + ServerName wiki.<ドメイン>
|
|
| 64 | + DocumentRoot /var/www/html/
|
|
| 65 | + SSLEngine on
|
|
| 66 | + SSLCertificateFile /etc/letsencrypt/live/<ドメイン>/cert.pem
|
|
| 67 | + SSLCertificateKeyFile /etc/letsencrypt/live/<ドメイン>/privkey.pem
|
|
| 68 | + SSLCertificateChainFile /etc/letsencrypt/live/<ドメイン>/chain.pem
|
|
| 69 | + RequestHeader set X_FORWARDED_PROTO 'https' env=HTTPS
|
|
| 70 | + <IfModule mod_rewrite.c>
|
|
| 71 | + RewriteEngine on
|
|
| 72 | + RewriteRule "^/favicon.ico$" "http://localhost/favicon.ico" [P]
|
|
| 73 | + RewriteRule "^/(.*)$" "http://localhost:4567/$1" [P,QSA]
|
|
| 74 | + </IfModule>
|
|
| 75 | +</VirtualHost>
|
|
| 76 | +```
|