User Tools

Site Tools


info:apache

Differences

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

Link to this comparison view

Next revision
Previous revision
info:apache [2011/07/23 10:29] – created moritzinfo:apache [2024/03/06 02:16] (current) – [Macros/Virtual Hosts] moritz
Line 12: Line 12:
  
  
-===== Macros =====+===== Macros/Virtual Hosts ===== 
 +Do not edit these directly. 
 +Use the config maintenance via bitbucket/git. 
 +See [[infra:Configuration Management]] 
 + 
 +Pull the files to your local machine and there, make changes, test, then commit them, push them to bitbucket and pull them to the vhost. 
 + 
 + 
 +Virtual hosts are listed in /etc/apache2/sites-available/hosts.it 
 +(Change to this directory before executing the commands mentioned below!) 
 +This is a list of virtual hosts. 
 + 
 +Enable the site using a2ensite, or create the symlink manually. 
 + 
 +The heavier lifting is in vhosts.ih, where the conf files for the vhosts are built. 
 +To build, use the supplied hosts.cmd, which takes care of spurious output. You need REXX to do this. 
 +vhosts.ih contains common rules for all the virtual hosts, review this file to change them. 
 + 
 +When you add virtual hosts, you also have to update the DNS with entries for them. 
 + 
 +After that, wait some time, then, request TLS certificates: 
 +<code>certbot certonly -c letsencrypt.ini --apache</code> 
 + 
 +Test certbot: 
 +<code>certbot certonly -c letsencrypt.ini --apache --test-cert --dry-run</code> 
 + 
 +If apache cannot serve the letsencrypt challenge, use <code>--standalone</code> and stop/start apache manually. 
 + 
  
  
  
  
info/apache.1311409744.txt.gz · Last modified: 2011/07/23 10:29 by moritz

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki