【问题标题】:The server encountered an internal error or misconfiguration服务器遇到内部错误或配置错误
【发布时间】:2019-07-30 22:36:47
【问题描述】:

服务器遇到内部错误或配置错误,无法完成您的请求。

当我关注 url http://youtuna.in 时,它显示了一个内部服务器错误。所以我联系了托管服务提供商,他们说这是一个脚本问题,开发人员说这是一个服务器问题。请任何人告诉我什么是 acutall 问题。我我是新的。

【问题讨论】:

  • 请给我看你的 .htaccess 文件
  • 这是开发者没有制作任何 htaccess 文件的问题。
  • 好的,很抱歉我帮不了你。
  • 问题出在我的插件域上,当 addopn 域 youtuna.in 上的这个 htaccess 文件显示内部服务器错误时,我在下面为您提供我的主域的 htaccess。但 youtuna.in 没有 htaccess 文件.
  • 主域htaccess文件代码RewriteEngine on RewriteCond $1 !^(index.php|assets|images|js|css|uploads|favicon.png|install|sitemap.xml|robots.txt|update_database) RewriteCond %(REQUEST_FILENAME) !-f RewriteCond %(REQUEST_FILENAME) !-d RewriteRule ^(.*)$ index.php?/$1 [L] <Files 403.shtml> order allow,deny allow from all </Files> AddHandler send-as-is .asis

标签: .htaccess codeigniter


【解决方案1】:

让我试着回答这个问题

你的代码是:

RewriteEngine on 
RewriteCond $1 !^(index.php|assets|images|js|css|uploads|favicon.png|install|sitemap.xml|robots.txt|update_database) 
RewriteCond %(REQUEST_FILENAME) !-f 
RewriteCond %(REQUEST_FILENAME) !-d 
RewriteRule ^(.*)$ index.php?/$1 [L] 
<Files 403.shtml> 
order allow,deny allow from all </Files> 
AddHandler send-as-is .asis

出于What is this file in .htaccess? 之类的原因,您可以删除以下代码:

<Files 403.shtml> 
    order allow,deny allow from all </Files> 

然后我认为您可以再次访问您的网站,因为我在本地主机上尝试过它,然后我也可以访问它。 您可以通知您的虚拟主机公司以确认您的 .htaccess 文件中是否存在以下代码,因为有些人认为这是 XSS 后门程序 (https://forums.digitalpoint.com/threads/files-403-shtml-order-allow-deny-allow-from-all.2748859/#post-19140446)

希望这个回答可以帮到你。

【讨论】:

猜你喜欢
  • 2014-08-01
  • 2015-09-21
  • 2012-04-18
  • 2011-09-20
  • 1970-01-01
  • 2016-03-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多