Skip to content

Instantly share code, notes, and snippets.

View mohammedfouad90's full-sized avatar

mohammed fouad hassen mohammedfouad90

View GitHub Profile
@mohammedfouad90
mohammedfouad90 / letsencrypt-webroot-apache.md
Created December 12, 2017 07:41 — forked from daronco/letsencrypt-webroot-apache.md
Letsencrypt with webroot on Apache

Config Apache with /etc/apache2/conf-available/le.conf:

Alias /.well-known/acme-challenge/ "/var/www/html/.well-known/acme-challenge/"
<Directory "/var/www/html/">
    AllowOverride None
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    Require method GET POST OPTIONS
</Directory>