分享

写回答

发帖

[提问] The server encountered an internal error 是怎么回事?

GoDaddy GoDaddy 1831 人阅读 | 2 人回复

发表于 2010-3-13 12:57:55 | 显示全部楼层 |阅读模式

我的wap手机网站http://wap.slsos.com 上传了图片,用手机下载不得,后来查了资料说是要设置MIME类型 。我在.htaccess 文件里添加如下代码:
AddType application/msword doc

AddType application/octet-stream exe

AddType application/pdf pdf

AddType application/vnd.ms-excel xlm

AddType application/vnd.ms-excel xls

AddType application/vnd.ms-powerpoint ppt

AddType application/x-msaccess mdb

AddType audio/mid mid

AddType audio/mpeg mp3

AddType audio/x-wav wav

AddType image/bmp bmp

AddType image/gif gif

AddType image/jpeg jpeg

AddType image/jpeg jpg

AddType image/x-icon ico

AddType text/css css

AddType text/html htm

AddType text/html html

AddType text/html stm

AddType text/plain txt

AddType video/mpeg mpg

AddType video/mpeg mpv2

AddType video/quicktime mov

AddType video/quicktime qt

AddType video/x-la-asf lsf

AddType video/x-msvideo avi

AddType video/x-sgi-movie movie



然后把.htaccess 放到跟目录,也就是http://wap.slsos.com/.htaccess

后来好像提示404错误,然后我现在把.htaccess 删除掉了 就出现以下错误
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


--------------------------------------------------------------------------------

Apache Server at wap.slsos.com Port 80

回答|共 2 个

add.c

发表于 2010-3-13 13:06:45 | 显示全部楼层

MIME类型在控制面板可以直接添加的
RAKSmart

langtou

发表于 2010-3-13 16:25:43 | 显示全部楼层

版主,不知道在哪里设置。 我的是150G 1500流量 那款。linux 的
您需要登录后才可以回帖 登录 | 注册

本版积分规则