User Tools

Site Tools


nndocs:templates:apache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

nndocs:templates:apache [2024/09/03 17:38] – created naptasticnndocs:templates:apache [2024/09/03 17:41] (current) naptastic
Line 97: Line 97:
      
       <IfModule ssl_module>       <IfModule ssl_module>
-          SSLCertificateFile /etc/letsencrypt/live/textgen.naptastic.com/fullchain.pem +          SSLCertificateFile [% let_certbot_fill_this_in %] 
-          SSLCertificateKeyFile /etc/letsencrypt/live/textgen.naptastic.com/privkey.pem +          SSLCertificateKeyFile [% let_certbot_fill_this_in %] 
-          SSLCACertificateFile /etc/ssl/certs/COMODO_CA_Limited_dbe3e9376d3359020526b6bc3f725c0f_1865548799.cabundle+          SSLCACertificateFile [% let_certbot_fill_this_in %]
       </IfModule>       </IfModule>
      
Line 121: Line 121:
  
   <VirtualHost *:80>   <VirtualHost *:80>
-      ServerName transmission.narf.rocks +      ServerName [% servername %] 
-      ServerAdmin david@naptastic.com +      ServerAdmin [% serveradmin %] 
-      DocumentRoot /var/www/narf.rocks+      DocumentRoot /var/www/[% servername %]
      
       <Directory "/">       <Directory "/">
Line 130: Line 130:
           Require ip 172.16.0.0/12           Require ip 172.16.0.0/12
           Require ip 192.168.0.0/16           Require ip 192.168.0.0/16
-          Require ip 208.74.120.0/21 
       </Directory>       </Directory>
      
       RewriteEngine On       RewriteEngine On
-      RewriteRule /(.*) http://127.0.0.1:9091/$1 [P]+      RewriteRule /(.*) http://[% transmission_ip %]:9091/$1 [P]
   </VirtualHost>   </VirtualHost>
  
Line 142: Line 141:
  
   <VirtualHost *:80>   <VirtualHost *:80>
-      ServerName wiki.naptastic.com+      ServerName [% servername %]
      
       RewriteEngine On       RewriteEngine On
-      RewriteCond %{SERVER_NAME} =wiki.naptastic.com+      RewriteCond %{SERVER_NAME} =[% servername %]
       RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]       RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
   </VirtualHost>   </VirtualHost>
      
   <VirtualHost *:443>   <VirtualHost *:443>
-      ServerName wiki.naptastic.com +      ServerName [% servername %] 
-      ServerAdmin david@naptastic.com +      ServerAdmin [% serveradmin %] 
-      DocumentRoot /var/www/wiki.naptastic.com/+      DocumentRoot /var/www/[% servername %]/
      
-      <Directory /var/www/wiki.naptastic.com/>+      <Directory /var/www/[% servername %]/>
           DirectoryIndex doku.php           DirectoryIndex doku.php
           AllowOverride all           AllowOverride all
Line 173: Line 172:
      
       <IfModule ssl_module>       <IfModule ssl_module>
-          SSLCertificateFile /etc/letsencrypt/live/naptastic.com/fullchain.pem +          SSLCertificateFile [% let_certbot_fill_this_in %] 
-          SSLCertificateKeyFile /etc/letsencrypt/live/naptastic.com/privkey.pem +          SSLCertificateKeyFile [% let_certbot_fill_this_in %] 
-          SSLCACertificateFile /etc/ssl/certs/COMODO_CA_Limited_dbe3e9376d3359020526b6bc3f725c0f_1865548799.cabundle+          SSLCACertificateFile [% let_certbot_fill_this_in %]
       </IfModule>       </IfModule>
      
       <FilesMatch ".+\.ph(ar|p|tml)$">       <FilesMatch ".+\.ph(ar|p|tml)$">
-          SetHandler "proxy:unix:/run/php/david.sock|fcgi://localhost"+          SetHandler "proxy:unix:/run/php/[% phpuser %].sock|fcgi://localhost"
       </FilesMatch>       </FilesMatch>
      
nndocs/templates/apache.1725385096.txt.gz · Last modified: 2024/09/03 17:38 by naptastic