[Apache]Fileãå¼·å¶çã«Downloadãããè¨å®
社å
ã®Serverã«Downloadå°ç¨ã®Siteãæ§ç¯ããã¨ãã®Memo.
ç°å¢: CentOS 6.2, Apache 2.2.15
åèã«ããã®ã¯ä¸è¨。
httpd.confã¯ä¸è¨ãããªæã。
<VirtualHost *:80>
ServerName downloads.hoge.com
DocumentRoot /home/hoge/downloads
<Directory "/home/hoge/downloads">
Options None
AllowOverride None
Header Add Content-Disposition "attachment"
</Directory>
</VirtualHost>
Access Logãåãã«ã¯CustomLogãè¨å®ãã。詳ããã¯Googleå çã§。
- Googleæ¤ç´¢: apache customlog
< Related Posts >