2013-03-20 4 views
0

웹 사이트를 배포하려고하는데 내부 서버 오류 500이 계속 발생합니다. 홈 페이지를 잘 열어도되지만 다른 메뉴 탭을 열 때 500 개의 내부 서버 오류가 계속 표시됩니다. 또한 로그를 확인했지만 아무런 단서도 발견되지 않았습니다. 여기 내 서버 오류 로그를 보여 주었다 내용은 다음과 같습니다500 Codeigniter 배포시 내부 서버 오류가 발생했습니다.

<?php if (! defined('BASEPATH')) exit('No direct script access allowed'); ?> 

DEBUG - 2013-03-20 11:36:44 --> Config Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Hooks Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Utf8 Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> UTF-8 Support Enabled 
DEBUG - 2013-03-20 11:36:44 --> URI Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Router Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> No URI present. Default controller set. 
DEBUG - 2013-03-20 11:36:44 --> Output Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Security Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Input Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Global POST and COOKIE data sanitized 
DEBUG - 2013-03-20 11:36:44 --> Language Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Loader Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Config file loaded: application/config/asset.php 
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: asset_helper 
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: string_helper 
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: url_helper 
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: form_helper 
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: text_helper 
DEBUG - 2013-03-20 11:36:44 --> Database Driver Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Native_session Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Form Validation Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Controller Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Model Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> Model Class Initialized 
DEBUG - 2013-03-20 11:36:44 --> File loaded: application/views/view_home.php 
DEBUG - 2013-03-20 11:36:44 --> File loaded: application/views/template.php 
DEBUG - 2013-03-20 11:36:44 --> Final output sent to browser 
DEBUG - 2013-03-20 11:36:44 --> Total execution time: 0.0295 

Heres는 내 .httaccess

한다 RewriteEngine 에 RewriteBase는/indocreweb/

#Removes access to the system folder by users. 
#Additionally this will allow you to create a System.php controller, 
#previously this would not have been possible. 
#'system' can be replaced if you have renamed your system folder. 
RewriteCond %{REQUEST_URI} ^system.* 
RewriteRule ^(.*)$ /indocreweb/index.php?/$1 [L] 

#When your application folder isn't in the system folder 
#This snippet prevents user access to the application folder 
#Submitted by: Fabdrol 
#Rename 'application' to your applications folder name. 
RewriteCond %{REQUEST_URI} ^application.* 
RewriteRule ^(.*)$ /indocreweb/index.php?/$1 [L] 

#Checks to see if the user is attempting to access a valid file, 
#such as an image or css document, if this isn't true it sends the 
#request to index.php 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ /indocreweb/index.php?/$1 [L] </IfModule> 

우리는 mod_rewrite를 설치하지 않는 #IF , 모두 404의 #을 index.php로 보내면 정상적으로 작동합니다. 에 의해 #Submitted : 로그, 나는 그것을 일으키는 원인이되는 문제 나 무엇 무엇을 어떤 실마리를 찾을 수 없습니다 보여 404 /index.php

바로는 ElliotHaughin 작성한 ErrorDocument. 누구나 이것에 대해 생각해 봤어? :-(

감사합니다.

+0

your.htaccess 파일에 문제가있는 것 같습니다 –

+0

사이트 주소를 공유 할 수 있습니까? –

+0

오류 로그를 확인하십시오. 500. –

답변

0

는 대부분이 때문에 htaccess로 의 일어나고처럼 보이는 오류를 일반적으로 모든 서버는 mod_rewrite는 그래서 모듈의 존재의 존재가 문제가 있다고 생각하지 않습니다.

있다

는 당신이 첫 번째 줄에 함께 놀러 필요가 있다고 생각 :에한다 RewriteEngine RewriteBase/indocreweb/ 슬래시를 제거하려고하거나, 다음이 한다 RewriteEngine해야 사이트에 직접 액세스하는 경우 URL이, 예를 들어 올바른 경우에도 여부를 확인 RewriteBase/ (예 : www.indocreweb.com)

그러나 다음 www.indocreweb.com/indocreweb RewriteBase/indocreweb에 한다 RewriteEngine이 도움이

희망과 같은 하위 폴더 또는 무언가로 액세스되는 않다면.

관련 문제