fixed index listing
This commit is contained in:
@@ -8,19 +8,6 @@ RUN sed -i \
|
|||||||
-e 's/^#LoadModule alias_module/LoadModule alias_module/' \
|
-e 's/^#LoadModule alias_module/LoadModule alias_module/' \
|
||||||
/usr/local/apache2/conf/httpd.conf
|
/usr/local/apache2/conf/httpd.conf
|
||||||
|
|
||||||
# Add custom autoindex CSS (served from /icons/)
|
|
||||||
RUN printf '%s\n' \
|
|
||||||
'/* Widen "Name" column in Apache autoindex */' \
|
|
||||||
'table#indexlist td.indexcolname, table#indexlist th.indexcolname {' \
|
|
||||||
' width: 60ch;' \
|
|
||||||
' max-width: 60ch;' \
|
|
||||||
'}' \
|
|
||||||
'table#indexlist td.indexcolname a {' \
|
|
||||||
' display: inline-block;' \
|
|
||||||
' max-width: 60ch;' \
|
|
||||||
'}' \
|
|
||||||
> /usr/local/apache2/icons/autoindex-custom.css
|
|
||||||
|
|
||||||
# Configure autoindex + icons + .htaccess + ignore "_" entries + UTF-8
|
# Configure autoindex + icons + .htaccess + ignore "_" entries + UTF-8
|
||||||
RUN printf '\n# --- Custom for file listing + .htaccess ---\n\
|
RUN printf '\n# --- Custom for file listing + .htaccess ---\n\
|
||||||
AddDefaultCharset UTF-8\n\
|
AddDefaultCharset UTF-8\n\
|
||||||
@@ -32,8 +19,8 @@ Alias /icons/ "/usr/local/apache2/icons/"\n\
|
|||||||
Require all granted\n\
|
Require all granted\n\
|
||||||
</Directory>\n\
|
</Directory>\n\
|
||||||
\n\
|
\n\
|
||||||
# Inject CSS for directory listings\n\
|
# Autoindex settings\n\
|
||||||
IndexHeadInsert "<link rel=\\"stylesheet\\" href=\\"/icons/autoindex-custom.css\\" type=\\"text/css\\">"\n\
|
IndexOptions FancyIndexing FoldersFirst NameWidth=*\n\
|
||||||
\n\
|
\n\
|
||||||
<Directory "/usr/local/apache2/htdocs">\n\
|
<Directory "/usr/local/apache2/htdocs">\n\
|
||||||
Options Indexes FollowSymLinks\n\
|
Options Indexes FollowSymLinks\n\
|
||||||
|
|||||||
Reference in New Issue
Block a user