slackbuilds

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

galileo-apache.conf (1287B)


      1 <VirtualHost _default_:80>
      2   ServerName gemini.example.com
      3 
      4   ProxyPass /.well-known !
      5   Alias /.well-known/acme-challenge /var/www/dehydrated
      6   <Directory /var/www/dehydrated>
      7     Options None
      8     AllowOverride None
      9     Require all granted
     10   </Directory>
     11 
     12   # Galileo expects the stylesheet here.
     13   Alias /galileo.css /srv/httpd/htdocs/galileo.css
     14   ProxyPass /galileo.css !
     15 
     16   SetEnvIf Request_URI . proxy-fcgi-pathinfo=other
     17   ProxyPass "/" "unix:/run/galileo.sock|fcgi://localhost/" enablereuse=on
     18 </VirtualHost>
     19 
     20 <VirtualHost _default_:443>
     21   ServerName gemini.example.com
     22 
     23   ProxyPass /.well-known !
     24   Alias /.well-known/acme-challenge /var/www/dehydrated
     25   <Directory /var/www/dehydrated>
     26     Options None
     27     AllowOverride None
     28     Require all granted
     29   </Directory>
     30 
     31   # Galileo expects the stylesheet here.
     32   Alias /galileo.css /srv/httpd/htdocs/galileo.css
     33   ProxyPass /galileo.css !
     34 
     35   SetEnvIf Request_URI . proxy-fcgi-pathinfo=other
     36   ProxyPass "/" "unix:/run/galileo.sock|fcgi://localhost/" enablereuse=on
     37 
     38   SSLEngine on
     39   SSLCertificateFile "/etc/dehydrated/certs/gemini.example.com/cert.pem"
     40   SSLCertificateKeyFile "/etc/dehydrated/certs/gemini.example.com/privkey.pem"
     41   SSLCertificateChainFile "/etc/dehydrated/certs/gemini.example.com/fullchain.pem"
     42 </VirtualHost>