aboutsummaryrefslogtreecommitdiff
path: root/galileo/file/galileo-apache.conf
blob: af57baf7bdf8983671ba0c68db4fe065c581d942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<VirtualHost _default_:80>
  ServerName gemini.example.com

  ProxyPass /.well-known !
  Alias /.well-known/acme-challenge /var/www/dehydrated
  <Directory /var/www/dehydrated>
    Options None
    AllowOverride None
    Require all granted
  </Directory>

  # Galileo expects the stylesheet here.
  Alias /galileo.css /srv/httpd/htdocs/galileo.css
  ProxyPass /galileo.css !

  SetEnvIf Request_URI . proxy-fcgi-pathinfo=other
  ProxyPass "/" "unix:/run/galileo.sock|fcgi://localhost/" enablereuse=on
</VirtualHost>

<VirtualHost _default_:443>
  ServerName gemini.example.com

  ProxyPass /.well-known !
  Alias /.well-known/acme-challenge /var/www/dehydrated
  <Directory /var/www/dehydrated>
    Options None
    AllowOverride None
    Require all granted
  </Directory>

  # Galileo expects the stylesheet here.
  Alias /galileo.css /srv/httpd/htdocs/galileo.css
  ProxyPass /galileo.css !

  SetEnvIf Request_URI . proxy-fcgi-pathinfo=other
  ProxyPass "/" "unix:/run/galileo.sock|fcgi://localhost/" enablereuse=on

  SSLEngine on
  SSLCertificateFile "/etc/dehydrated/certs/gemini.example.com/cert.pem"
  SSLCertificateKeyFile "/etc/dehydrated/certs/gemini.example.com/privkey.pem"
  SSLCertificateChainFile "/etc/dehydrated/certs/gemini.example.com/fullchain.pem"
</VirtualHost>