doc(apache2): allow access to local docs folder
This commit is contained in:
parent
130008da03
commit
dc08e17996
1 changed files with 7 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue