Oct 19
【教學】如何在本機用Safari 看 PDF, DOC, XLS, TXT 或其他檔案
原文:http://iphone.i-bloog.com/read-8.html
可能有些人知道了…但也說說^_^
iphone 的 safari 本身就可以看 PDF, DOC, XLS, TXT這些檔案
![]() |
![]() |
方法:
1.請必需安裝 BSD Subsystem,再裝lighttpd ,可透過 installer 安裝 (請看http://iphone.i-bloog.com/read-6.html )
2.用iBrick / SSH下載iphone 的 /usr/local/etc/lighttpd.conf 這個檔案
並刪除/private/var/root/Sites/ 的index.html
3.用notepad(個人建議用 Emeditor) 這類軟件 修改 /usr/local/etc/lighttpd.conf 這個檔案
在最後加上
- dir-listing.activate = "enable"
或下載此檔
lighttpd.rar (919 Byte , 下載:553次) overwrite 原有的 lighttpd.conf
4.重新開機
5.把PDF ,doc 這些文件放在 /private/var/root/Sites/ (可用iBrickr)
6.之後就可以在safari 打上 127.0.0.1 共看這些檔案


August 3rd, 2008 at 7:32 pm
我想講我唔小心 delete 左/private/var/root/Sites/ 整個sites 呢個file
咁可以點補救??
June 11th, 2008 at 6:28 pm
我用1.1.4, 在採取以上步驟後, 在Safari打入127.0.0.1後出現 ‘404 - Not Found’訊息, 不知出了什麼問題.
April 14th, 2008 at 2:58 am
请问在1.1.4中如何设置?我用apeche但看不到壹周刊等。谢谢
iphone reply on April 14th, 2008:
試試用 lighttpd 吧
我覺得較方便
February 23rd, 2008 at 12:08 pm
Yes
You can
February 23rd, 2008 at 1:28 am
can i open xls in 1.1.3
February 13th, 2008 at 8:23 am
升到112後就不用Safari開doc file, Why?
November 18th, 2007 at 2:58 am
可以了~謝^^
November 18th, 2007 at 1:20 am
http://iphone.i-bloog.com/download.php?id=43
可試試這個~
我上傳了 lighttpd.conf
你試試
November 17th, 2007 at 5:40 pm
lighttpd.conf 檔案的內容的最後是以下嗎?
\\\".tar.bz2\\\" => \\\"application/x-bzip-compressed-tar\\\",
# default mime type
\\\"\\\" => \\\"application/octet-stream\\\",
)
如是,那應該加在內容的那裡呢?
已delete site.html和重新開啟 iphone..
但也不可以在safari 打上 127.0.0.1 共看這些檔案
November 14th, 2007 at 8:23 am
的確加在lighttpd.conf 的
請問有沒有 delete 到 site.html?
和重新開啟 iphone
November 14th, 2007 at 2:04 am
dir-listing.activate = "enable"
加在那裡?
我已嘗試加在/usr/local/etc/lighttpd.conf 這個檔案文章中..但也不可以