From b8b4a8be696dc43ab896f5f24bbe3f3deb26a310 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Fri, 17 Aug 2018 03:29:08 +0300 Subject: [PATCH] Updated Apache (markdown) --- Apache.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/Apache.md b/Apache.md index 10fd87e..19bb8d1 100644 --- a/Apache.md +++ b/Apache.md @@ -8,6 +8,11 @@ sudo a2enmod proxy proxy_http proxy_wstunnel ## 2) Restart Apache +Systemd: +``` +sudo systemctl restart apache2 +``` +Init.d: ``` sudo service apache2 restart ``` @@ -41,11 +46,28 @@ Config at `/etc/apache2/sites-available/example.com.conf`: ## 5) Enable your site -`sudo a2ensite example.com` +``` +sudo a2ensite example.com +``` +Or, add symlink manually: +``` +sudo su + +cd /etc/apache2/sites-enabled + +ln -s ../sites-available/example.com.conf example.com.conf +``` ## 6) Reload Apache -`sudo service apache2 reload` +Systemd: +``` +sudo systemctl restart apache2 +``` +Init.d: +``` +sudo service apache2 restart +``` ## 7) Snap settings ```