raksmart活动促销

分享

写回答

发帖

网站又出现500错误了!

国外虚拟主机 国外虚拟主机 5704 人阅读 | 17 人回复

发表于 2009-5-25 22:54:54 | 显示全部楼层 |阅读模式

今天早上网站还正常,下午又出现了500错误。
不知是不是激活了图片防盗链,还是别的原因?
www.china-hookah-shisha.com

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@XXXXX.net 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.


Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


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

Apache/1.3.41 Server at www.china-hookah-shisha.com Port 80

看错误日志也看不懂,看不出什么来,
那个高手能帮忙下。谢谢!

回答|共 17 个

一路同行

发表于 2009-5-26 09:01:31 | 显示全部楼层

把错误日志贴上来看看
RAKSmart

bizsource

发表于 2009-5-26 09:58:32 | 显示全部楼层

原帖由 一路同行 于 2009-5-26 09:01 AM 发表
把错误日志贴上来看看

谢谢版主,帮我分析下日志。
   



Error Log

--------------------------------------------------------------------------------
Last 300 Error Log Messages in reverse order:
--------------------------------------------------------------------------------

[Mon May 25 18:45:18 2009] [error] [client 212.155.126.43] File does not exist: /home/sourc11/public_html/magento-china/404.shtml
[Mon May 25 18:45:18 2009] [error] [client 212.155.126.43] File does not exist: /home/sourc11/public_html/magento-china/category/free-template/wordpress-free-template
[Mon May 25 18:45:18 2009] [error] [client 212.155.126.43] File does not exist: /home/sourc11/public_html/magento-china/404.shtml
[Mon May 25 18:45:18 2009] [error] [client 212.155.126.43] File does not exist: /home/sourc11/public_html/magento-china/category/free-template/wordpress-free-template/
[Mon May 25 18:45:17 2009] [error] [client 212.155.126.43] File does not exist: /home/sourc11/public_html/magento-china/404.shtml
[Mon May 25 18:35:58 2009] [alert] [client 124.115.0.27] /home/sourc11/public_html/chinahookahshisha/.htaccess: RewriteRule: bad flag delimiters
[Mon May 25 18:35:58 2009] [alert] [client 124.115.0.27] /home/sourc11/public_html/chinahookahshisha/.htaccess: RewriteRule: bad flag delimiters
[Mon May 25 18:35:58 2009] [alert] [client 124.115.0.27] /home/sourc11/public_html/chinahookahshisha/.htaccess: RewriteRule: bad flag delimiters
[Mon May 25 18:35:58 2009] [alert] [client 124.115.0.27] /home/sourc11/public_html/chinahookahshisha/.htaccess: RewriteRule: bad flag delimiters
[Mon May 25 18:35:36 2009] [alert] [client 64.246.165.160] /home/sourc11/public_html/chinastockunion/.htaccess: </IfModule> takes no arguments
[Mon May 25 18:35:36 2009] [alert] [client 64.246.165.160] /home/sourc11/public_html/chinastockunion/.htaccess: </IfModule> takes no arguments
[Mon May 25 18:35:36 2009] [alert] [client 64.246.165.160] /home/sourc11/public_html/chinastockunion/.htaccess: </IfModule> takes no arguments
[Mon May 25 18:35:36 2009] [alert] [client 64.246.165.160] /home/sourc11/public_html/chinastockunion/.htaccess: </IfModule> takes no arguments
[Mon May 25 18:35:31 2009] [alert] [client 65.55.106.164] /home/sourc11/public_html/chinahookahshisha/.htaccess: RewriteRule: bad flag delimiters
[Mon May 25 18:35:31 2009] [alert] [client 65.55.106.164] /home/sourc11/public_html/chinahookahshisha/.htaccess: RewriteRule: bad flag delimiters

加粗的就是这个网站的错误日志。
erro-log.jpg

一路同行

发表于 2009-5-26 10:01:36 | 显示全部楼层

.htaccess规则有问题,你是实现什么?

bizsource

发表于 2009-5-26 10:05:18 | 显示全部楼层

我没有修改过.htaccess,但昨天问过你怎么启动图片盗链,我激活后,空间上其它网站的图片显示不了,这个网站就出现500错误,后来又不激活了图片盗链,其它网站图片显示正常了,但这个还是500错误。
.htaccess需要重新修改吗?或者版主能提供一份规范的文件给我比较。

一路同行

发表于 2009-5-26 10:10:47 | 显示全部楼层

激活以后,要把自己的网站添加进去,否则自己的网站也不能访问了
.htaccess里还有什么内容?t贴上来看看

bizsource

发表于 2009-5-26 17:29:31 | 显示全部楼层

原帖由 一路同行 于 2009-5-26 10:10 AM 发表
激活以后,要把自己的网站添加进去,否则自己的网站也不能访问了
.htaccess里还有什么内容?t贴上来看看

在空间根目录下有一个.htaccess文件;AddHandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
# AddHandler x-httpd-php5 .php
suPHP_ConfigPath /home/sourc11/public_html
在这个站的目录下也有一个.htaccess文件。内容如下:
<FilesMatch "\.(bak|inc|lib|sh|tpl|lbi|dwt)$">
    order deny,allow
    deny from all
</FilesMatch>

RewriteBase /

# direct one-word access
RewriteRule ^index.html$    index.php [L]
RewriteRule ^category$      index.php [L]

# access any object by its numeric identifier
RewriteRule ^feed-c([0-9]+).xml$       feed.php?cat=$1 [L]
RewriteRule ^feed-b([0-9]+).xml$       feed.php?brand=$1 [L]
RewriteRule ^feed.xml$                 feed.php [L]

RewriteRule ^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$  category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 [QSA,L]
RewriteRule ^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$                            category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5 [QSA,L]
RewriteRule ^category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$                                      category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5 [QSA,L]
RewriteRule ^category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$                                                       category.php?id=$1&brand=$2&page=$3  [QSA,L]
RewriteRule ^category-([0-9]+)-b([0-9]+)(.*)\.html$                                                                category.php?id=$1&brand=$2  [QSA,L]
RewriteRule ^category-([0-9]+)(.*)\.html$                                                                          category.php?id=$1  [QSA,L]

RewriteRule ^goods-([0-9]+)(.*)\.html$  goods.php?id=$1 [QSA,L]

RewriteRule ^article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$  article_cat.php?id=$1&page=$2&sort=$3&order=$4  [QSA,L]
RewriteRule ^article_cat-([0-9]+)-([0-9]+)(.*)\.html$                   article_cat.php?id=$1&page=$2   [QSA,L]
RewriteRule ^article_cat-([0-9]+)(.*)\.html$                            article_cat.php?id=$1   [QSA,L]

RewriteRule ^article-([0-9]+)(.*)\.html$                                article.php?id=$1   [QSA,L]

RewriteRule ^brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html   brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5 [QSA,L]
RewriteRule ^brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html                brand.php?id=$1&cat=$2&page=$3 [QSA,L]
RewriteRule ^brand-([0-9]+)-c([0-9]+)(.*)\.html                         brand.php?id=$1&cat=$2 [QSA,L]
RewriteRule ^brand-([0-9]+)(.*)\.html                                   brand.php?id=$1 [QSA,L]

RewriteRule ^tag-(.*)\.html                                             search.php?keywords=$1 [QSA,L]
RewriteRule ^snatch-([0-9]+)\.html$                                      snatch.php?id=$1 [QSA,L]
RewriteRule ^group_buy-([0-9]+)\.html$                                   group_buy.php?act=view&id=$1 [QSA,L]RewriteCond %{HTTP_REFERER} !^http://1shisha.sourcingchina.net/.*$      [NC]

一路同行

发表于 2009-5-26 17:32:01 | 显示全部楼层

这个是public_html/chinahookahshisha目录下的.htaccess吗?

bizsource

发表于 2009-5-26 17:53:52 | 显示全部楼层

是的

bizsource

发表于 2009-5-26 18:07:36 | 显示全部楼层

一路同行版主还在吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则