]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - doc/md/Server-configuration.md
doc: server configuration: fix apache restart command
[github/shaarli/Shaarli.git] / doc / md / Server-configuration.md
index bb488ef0b2e5f678a884fba2baed24a330e1a87c..3eeaad70a147099e3cbe321c691d0078f2224fb8 100644 (file)
@@ -198,7 +198,7 @@ sudo nano /etc/apache2/sites-available/shaarli.mydomain.org.conf
 
 ```bash
 # Enable the virtualhost
-sudo a2ensite shaarli
+sudo a2ensite shaarli.mydomain.org
 
 # mod_ssl must be enabled to use TLS/SSL certificates
 # https://httpd.apache.org/docs/current/mod/mod_ssl.html
@@ -208,12 +208,15 @@ sudo a2enmod ssl
 # https://httpd.apache.org/docs/current/mod/mod_rewrite.html
 sudo a2enmod rewrite
 
+# mod_headers must be enabled to set custom headers from the server config
+sudo a2enmod headers
+
 # mod_version must only be enabled if you use Apache 2.2 or lower
 # https://httpd.apache.org/docs/current/mod/mod_version.html
 # sudo a2enmod version
 
 # restart the apache service
-systemctl restart apache
+sudo systemctl restart apache2
 ```
 
 See [How to install the Apache web server](https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-debian-10) for a complete guide.