|
蓝森林 http://www.lslnet.com 2006年5月28日 19:08
部分浏览器打开页面变下载问题
http://www.new-class.cn 这个网站在alexa上的抓图是原代码,老大让我看看是什么问题
我当然想到的是mime类型问题,这个网站的页面的后缀是.shtml 我就在http.conf里添加AddType text/html shtml 在mime.types里也添加了text/html shtml htm html 甚至在虚礼站点里都添加了
AllowOverride All
AddType text/html .html
AddType text/html .shtml
AddHandler server-parsed .html
Options +IncludesNOEXEC
但是,lnyx打开页面,不是直接打开,使叫我下载,下载后打开看到的还是源代码。
我该怎么办?
lynx http://www.new-class.cn
text/html;charset=gb2312 D)ownload, or C)ancel |
部分浏览器打开页面变下载问题
我也有类似的问题!
顶一下! |
部分浏览器打开页面变下载问题
会不会是夹在德modules不对 我加载了这些东东……
root@webserver root]# httpd -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_deflate.c
mod_log_config.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c |
部分浏览器打开页面变下载问题
shtml在页面之中,包含了SSI,来调用其它程序,你如果使用html,那么其中的程序是不会执行的 |
| |