0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ApaxyでDirectoryIndexをきれいに表示する

Posted at

文字化け解決のためファイル名をUTF-8にしたい場合

  • +Charset=UTF-8を指定するとよい様子
# index options
IndexOptions +Charset=UTF-8 +FancyIndexing +FoldersFirst +HTMLTable +IconsAreLinks +IgnoreCase +NameWidth=* +SuppressDescription +SuppressRules +XHTML -SuppressHTMLPreamble

apaxyを使う

cd /var/www/html/

git clone https://github.com/AdamWhitcroft/Apaxy.git

cp Apaxy/apaxy/htaccess.txt /etc/http/conf.d/apaxy.conf
  • /etc/http/conf.d/apaxy.conf

内の{FOLDERNAME}をPATHが通るように修正する。

- AddIconByType (ps,{FOLDERNAME}/theme/icons/image-x-eps.svg) application/postscript
+ AddIconByType (ps,/Apaxy/apaxy/theme/icons/image-x-eps.svg) application/postscript

Apacheを再起動し表示が変わったことを確認。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?