« wget認証ありの場合 | トップページ | Google App Engine »

docx等のファイルをダウンロードすると拡張子がzipに変換される

docx、xlss、pptx等のファイルをApacheで運用しているWebサイトからダウンロードしようとすると、拡張子がzipに変換されてしまう。

これを回避するためには、httpd.confに下記記述を追加する。

AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document .docx
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet .xlsx
AddType application/vnd.openxmlformats-officedocument.presentationml.presentation .pptx

« wget認証ありの場合 | トップページ | Google App Engine »

Linux」カテゴリの記事

コメント

コメントを書く

コメントは記事投稿者が公開するまで表示されません。

(ウェブ上には掲載しません)

« wget認証ありの場合 | トップページ | Google App Engine »