Merge pull request #1876 from ArthurHoaro/doc/apache-docs

doc(apache2): allow access to local docs folder
This commit is contained in:
nodiscc 2022-10-14 15:52:37 +00:00 committed by GitHub
commit a54795f8eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,6 +198,13 @@ sudo nano /etc/apache2/sites-available/shaarli.mydomain.org.conf
Require all granted
</Directory>
<Directory /var/www/shaarli.mydomain.org/doc/html/>
DirectoryIndex index.html
<FilesMatch ".*\.html">
Require all granted
</FilesMatch>
</Directory>
# BE CAREFUL: directives order matter!
<FilesMatch ".*\.(?!(ico|css|js|gif|jpe?g|png|ttf|oet|woff2?)$)[^\.]*$">
@ -215,7 +222,6 @@ sudo nano /etc/apache2/sites-available/shaarli.mydomain.org.conf
Header set Cache-Control "max-age=2628000, public, must-revalidate, proxy-revalidate"
</FilesMatch>
# serve the Shaarli favicon from its custom location
Alias favicon.ico /var/www/shaarli.mydomain.org/images/favicon.ico
</VirtualHost>