Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
media [2016/08/31 16:36] tower [Unix-type systems] |
media [2016/08/31 16:40] (current) tower [Unix-type systems] |
||
---|---|---|---|
Line 12: | Line 12: | ||
===== Link Dialog ===== | ===== Link Dialog ===== | ||
+ | |||
The link dialog has three fields, two of which are drop-down menus. | The link dialog has three fields, two of which are drop-down menus. | ||
Line 168: | Line 169: | ||
Dokuwiki's media files are secured by an .htaccess file in the data directory which prohibits direct web access to the files stored in the data directory and all of its subdirectories. To by-pass this prohibition, fckgLite accesses the media directory indirectly through symbolic links in the fckeditor/userfiles directory. The defaullt .htaccess file in the userfiles directory allows complete we access to the media directory. If your wiki is open to the internet, you might want additional security. There is an .htaccess file in the fckg/fckeditor/userfiles directory which prohibits direct access to all files except image files. This file is named .htaccess.security. To use it you must remove the ”.security” extension and rename it .htaccess: | Dokuwiki's media files are secured by an .htaccess file in the data directory which prohibits direct web access to the files stored in the data directory and all of its subdirectories. To by-pass this prohibition, fckgLite accesses the media directory indirectly through symbolic links in the fckeditor/userfiles directory. The defaullt .htaccess file in the userfiles directory allows complete we access to the media directory. If your wiki is open to the internet, you might want additional security. There is an .htaccess file in the fckg/fckeditor/userfiles directory which prohibits direct access to all files except image files. This file is named .htaccess.security. To use it you must remove the ”.security” extension and rename it .htaccess: | ||
- | <IfModule mod_authz_host>\\ | + | <file apache .htaccess.security> |
- | Require all denied\\ | + | <IfModule mod_authz_host> |
- | </IfModule>\\ | + | Require all denied |
- | <IfModule !mod_authz_host>\\ | + | </IfModule> |
- | Order allow,deny\\ | + | <IfModule !mod_authz_host> |
- | Deny from all\\ | + | Order allow,deny |
+ | Deny from all | ||
</IfModule> | </IfModule> | ||
- | <FilesMatch "\.(gif|jpe?g|png)$">\\ | + | <FilesMatch "\.(gif|jpe?g|png)$"> |
- | <IfModule mod_authz_host>\\ | + | <IfModule mod_authz_host> |
- | Require all granted\\ | + | Require all granted |
- | </IfModule>\\ | + | </IfModule> |
- | <IfModule !mod_authz_host>\\ | + | <IfModule !mod_authz_host> |
- | Order allow,deny\\ | + | Order allow,deny |
- | Allow from all\\ | + | Allow from all |
- | </IfModule>\\ | + | </IfModule> |
</FilesMatch> | </FilesMatch> | ||
Options -Indexes | Options -Indexes | ||
+ | </file> | ||
In order for this file to be effective, the Apache configuration file (httpd.conf) must apply the **AllowOverride All** directive either to the userfiles directory or to one of its parent directories. This directive must be in a Directory container, for instance: | In order for this file to be effective, the Apache configuration file (httpd.conf) must apply the **AllowOverride All** directive either to the userfiles directory or to one of its parent directories. This directive must be in a Directory container, for instance: | ||
- | <code .htaccess.security> | + | <code> |
<Directory "/var/www/html"> | <Directory "/var/www/html"> | ||
Line 203: | Line 206: | ||
<code> | <code> | ||
<FilesMatch "\.(gif|jpe?g|png|pdf)$"> | <FilesMatch "\.(gif|jpe?g|png|pdf)$"> | ||
- | order allow,deny | + | |
- | allow from all | + | |
</FilesMatch> | </FilesMatch> | ||
</code> | </code> | ||
Also see the page on installing the [[:file_browser_install|filebrowser]]. | Also see the page on installing the [[:file_browser_install|filebrowser]]. | ||
- | |||
==== Windows ==== | ==== Windows ==== |