User Tools

Site Tools


info:apache

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
info:apache [2019/03/25 14:34] – [Macros] added virtual host creation and build process hartmutinfo:apache [2024/03/06 02:16] (current) – [Macros/Virtual Hosts] moritz
Line 15: Line 15:
 Do not edit these directly. Do not edit these directly.
 Use the config maintenance via bitbucket/git. Use the config maintenance via bitbucket/git.
-See [[Configuration Management]]+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. 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.
Line 23: Line 23:
 (Change to this directory before executing the commands mentioned below!) (Change to this directory before executing the commands mentioned below!)
 This is a list of virtual hosts. 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. The heavier lifting is in vhosts.ih, where the conf files for the vhosts are built.
Line 32: Line 34:
 After that, wait some time, then, request TLS certificates: After that, wait some time, then, request TLS certificates:
 <code>certbot certonly -c letsencrypt.ini --apache</code> <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.1553520892.txt.gz · Last modified: 2019/03/25 14:34 by hartmut

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki