子域中的 Codeigniter 错误 500
Codeigniter Error 500 in subdomain
所以,我最近在一个子域中安装了 codeigniter,当我尝试访问它时遇到 500 错误。脚本应该 运行 正常,我在其他几个域上都有它,我猜它是主域文件夹 (public_html) 上的 htaccess。
这是 "root" 文件夹中的 .htaccess
#OLD
RewriteCond %{HTTP_HOST} ^domain.tv$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.tv$
RewriteCond %{HTTP_HOST} !^db\.domain\.com$ [NC]
RewriteRule ^/?$ http://domain.com/blog/topics/vidcast/ [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^blog/index.php/archives/category/podcast/feed$ http://feeds.feedburner.com/domainPodcast [R=301,L]
#RewriteCond %{HTTP_HOST} !^(www|ftp|webmail)\.milaraki\.com
#RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com
#RewriteRule (.*) http://domain.com/blog/wp-content/uploads/%1/ [L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
这是子域中的 .htaccess(名称:db.domain.com)
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^([a-z0-9_-]+)\.html$ index.php/page/ [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond !^(index\.php|asset|robots\.txt)
RewriteRule ^(.*)$ index.php/ [L]
现在,每当我尝试访问“http://db.domain.com", it redirects me to "http://db.domain.com/blog/”时。如果我尝试通过子文件夹访问
像“http://domain.com/db”它给了我一个 500Error.
我们也在 apache/error_log:
中收到这些垃圾邮件
warn] (103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function
另外,让我告诉你它在 VPS 和 "root" .htaccess 文件中,它不是我制作的,而是来自客户的,我所做的只是添加一个额外的他的 .htaccess 文件中的行到 "stop" 重定向,但它根本不起作用。
那是我添加的行(已经在我发布的代码中)
RewriteCond %{HTTP_HOST} !^db.domain.com$ [NC]</pre>
即使我将其删除或保留在那里,它仍然会出现错误。
哦,在 "root" 文件夹中,他安装了 WordPress。
希望我说得够清楚,有其他问题可以随时问我。
所以,我最终从 "root" 文件夹
的 .htaccess 文件中删除了以下行
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
重新启动 Apache(不知道为什么这是必要的)并且新设置修复了所有问题...
所以,我最近在一个子域中安装了 codeigniter,当我尝试访问它时遇到 500 错误。脚本应该 运行 正常,我在其他几个域上都有它,我猜它是主域文件夹 (public_html) 上的 htaccess。
这是 "root" 文件夹中的 .htaccess
#OLD
RewriteCond %{HTTP_HOST} ^domain.tv$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.tv$
RewriteCond %{HTTP_HOST} !^db\.domain\.com$ [NC]
RewriteRule ^/?$ http://domain.com/blog/topics/vidcast/ [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^blog/index.php/archives/category/podcast/feed$ http://feeds.feedburner.com/domainPodcast [R=301,L]
#RewriteCond %{HTTP_HOST} !^(www|ftp|webmail)\.milaraki\.com
#RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com
#RewriteRule (.*) http://domain.com/blog/wp-content/uploads/%1/ [L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
这是子域中的 .htaccess(名称:db.domain.com)
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^([a-z0-9_-]+)\.html$ index.php/page/ [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond !^(index\.php|asset|robots\.txt)
RewriteRule ^(.*)$ index.php/ [L]
现在,每当我尝试访问“http://db.domain.com", it redirects me to "http://db.domain.com/blog/”时。如果我尝试通过子文件夹访问 像“http://domain.com/db”它给了我一个 500Error.
我们也在 apache/error_log:
中收到这些垃圾邮件warn] (103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function
另外,让我告诉你它在 VPS 和 "root" .htaccess 文件中,它不是我制作的,而是来自客户的,我所做的只是添加一个额外的他的 .htaccess 文件中的行到 "stop" 重定向,但它根本不起作用。 那是我添加的行(已经在我发布的代码中)
RewriteCond %{HTTP_HOST} !^db.domain.com$ [NC]</pre>
即使我将其删除或保留在那里,它仍然会出现错误。 哦,在 "root" 文件夹中,他安装了 WordPress。希望我说得够清楚,有其他问题可以随时问我。
所以,我最终从 "root" 文件夹
的 .htaccess 文件中删除了以下行<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
重新启动 Apache(不知道为什么这是必要的)并且新设置修复了所有问题...