Merge pull request #1876 from ArthurHoaro/doc/apache-docs
doc(apache2): allow access to local docs folder
This commit is contained in:
commit
a54795f8eb
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
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
<Directory /var/www/shaarli.mydomain.org/doc/html/>
|
||||||
|
DirectoryIndex index.html
|
||||||
|
<FilesMatch ".*\.html">
|
||||||
|
Require all granted
|
||||||
|
</FilesMatch>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
# BE CAREFUL: directives order matter!
|
# BE CAREFUL: directives order matter!
|
||||||
|
|
||||||
<FilesMatch ".*\.(?!(ico|css|js|gif|jpe?g|png|ttf|oet|woff2?)$)[^\.]*$">
|
<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"
|
Header set Cache-Control "max-age=2628000, public, must-revalidate, proxy-revalidate"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
|
|
||||||
# serve the Shaarli favicon from its custom location
|
# serve the Shaarli favicon from its custom location
|
||||||
Alias favicon.ico /var/www/shaarli.mydomain.org/images/favicon.ico
|
Alias favicon.ico /var/www/shaarli.mydomain.org/images/favicon.ico
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
Loading…
Reference in a new issue