나는 많은 tuttorials를 들었지만 모두 같은 오류가 발생합니다. - 오류 500 - 서버가 과부하되었거나 CGI 스크립트에 오류가있었습니다.Yii의 멋진 URL 만들기
내가 Windows에서 XAMPP를 사용하고 YII의 main.php
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'caseSensitive'=>false,
'rules'=>array(
'' => 'site/index',
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
변경이
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>
같은 값을 httpd.conf를 cofigured 및 루트 폴더 (같은 수준에서 htaccess로 추가 해요 보호 된 폴더)
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteBase /tests/
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
그러나 .htaccess에서 무엇을 쓸지라도이 오류가 발생합니다. 내가 모든 것을 주석 처리했을 때, yii의 링크는 index.php없이 ok로 생성되지만 잘못된 서버 구성으로 인해 404 오류가 발생합니다.
편집 :
그리고에서는 error.log 지난 몇 기록 :
[수요일 11월 27일 11 : 32 : 31.100063 2013] [핵심 : 경고] [PID 9520 : TID 1572] [ client :: 1 : 58620] C : /Users/kristineg/xamps/htdocs/xampp/tests/.htaccess : 여기 허용되지 않는 옵션 [Wed 11 월 27 일 수요일 : 32 : 31.372163 2013] [코어 : 경고] [pid 9520 : 1527] [client :: 1 : 58621] C : /Users/kristineg/xamps/htdocs/xampp/tests/.htaccess : 여기에 허용되지 않는 옵션 [Wed 11 월 27 일 수요일 : 32 : 34.674379 2013] [core : alert] [pid 9520 : tid 1572] [고객 : 1 : 5862 2] C : /Users/kristineg/xamps/htdocs/xampp/tests/.htaccess : 여기 허용되지 않는 옵션 [Wed 11 월 27 일 수요일 : 32 : 36.587084 2013] [core : alert] [pid 9520 : tid 1572] [client : 1 : 58623] C : /Users/kristineg/xamps/htdocs/xampp/tests/.htaccess : 여기에 허용되지 않는 옵션 [Wed 11 월 27 일 수요일 : 32 : 54.899832 2013] [core : alert] [pid 9520 : tid 1572] [client :: 1 : 58624] C : /Users/kristineg/xamps/htdocs/xampp/tests/.htaccess : 여기에 허용되지 않는 옵션 [Wed : 27 : 11 : 54 : 14.056192 2013] [core : alert] [ pid 9520 : tid 1572] [client :: 1 : 59297] C : /Users/kristineg/xamps/htdocs/xampp/tests/.htaccess : 여기 허용되지 않는 옵션 [Wed 11 월 27 일 수요일 : 54 : 14.687425 2013] [core : 경고] [pid 9520 : tid 1572] [client :: 1 : 59298] C : /Users/kristineg/xamps/htdocs/xampp/tests/.htaccess : 여기 허용되지 않는 옵션 [Wed Nov 27 15 : 53 : 27.459885 2013] [ssl : 경고] [pid 11320 : tid 308] AH01909 : RSA 인증서 문제 www.example.com:443에 대한 설명이 서버 이름과 일치하는 ID를 포함하지 않음 [Wed 11 월 27 일 : 53 : 27.525911 2013] [core : 경고] [pid 11320 : tid 308] AH00098 : pid 파일 C :/사용자/kristineg/xamps/apache/logs/httpd.pid 덮어 쓰기 - 이전 Apache 실행을 부정하게 종료 했습니까?[Wed Nov 27 15 : 53 : 27.588934 2013] [ssl : 경고] [pid 11320 : tid 308] AH01909 : www.example.com:443에 대해 구성된 RSA 인증서에 서버 이름과 일치하는 ID가 포함되지 않음 [Wed Apache/2.4.4 (Win32) OpenSSL/1.0.1e PHP/5.5.1 구성 - 정상 작동 다시 시작 [Wed] OpenSSL/1.0.1e PHP/5.5.1 구성 - 정상 작업 다시 시작 [Wed 27 : 53 : 27 : 27.625947 2013] [mpm_winnt : 공지] [pid 11320 : tid 308] AH00455 : 2013 년 2 월 23 일 12시 42 분 [수요일 11 월 27 일 15시 53 분 : 27.625947 2013] [코어 : 공지 사항] ] [pid 11320 : tid 308] AH00094 : 명령 줄 : 'c : \ users \ kristineg \ xamps \ apache \ bin \ httpd.exe -d C :/Users/kristineg/xamps/apache' [Wed Nov 27 15 : 53 : 27.627948 2013] [mpm_winnt : 공지] [pid 11320 : tid 308] AH00418 : 부모 : 생성 된 자식 프로세스 4472 [Wed 11 월 27 일 : 53 : 27.998083 2013] [ssl : 경고] [pid 447 2 : tid 336] AH01909 : www.example.com:443에 대해 구성된 RSA 인증서에 서버 이름과 일치하는 ID가 포함되지 않음 [Wed 11 월 27 일 : 53 : 28.143138 2013] [ssl : 경고] [pid 4472 : tid 336] AH01909 : www.example에 대해 RSA 인증서가 구성되었습니다.com : 443에는 서버 이름과 일치하는 ID가 포함되지 않습니다. [Wed Nov 27 15 : 53 : 28.186154 2013] [mpm_winnt : notice] [pid 4472 : tid 336] AH00354 : 하위 : 150 개의 작업자 스레드 시작. [Wed 11 월 27 일 수요일 : 53 : 38.827074 2013] [core : alert] [pid 4472 : tid 1640] [client :: 1 : 61797] C : /Users/kristineg/xamps/htdocs/xampp/tests/.htaccess : 여기에 허용되지 않는 옵션이 있습니다. [Wed : 27 : 53 : 39.614364 2013] [core : alert] [pid 4472 : tid 1652] [client :: 1 : 61796] C :/Users/kristineg/xamps/htdocs/xampp/tests /.htaccess : 여기에 허용되지 않는 옵션 [Wed 11 월 27 일 수요일 : 15 : 53 : 39.958491 2013] [core : alert] [pid 4472 : tid 1640] [client :: 1 : 61798] C :/Users/kristineg/xamps/htdocs /xampp/tests/.htaccess : 여기에 허용되지 않는 옵션 [Wed 11 월 27 일 수요일 : 53 : 40.295616 2013] [core : alert] [pid 4472 : tid 1652] [client :: 1 : 61799] C :/Users/kristineg /xamps/htdocs/xampp/tests/.htaccess : 여기 허용되지 않는 옵션 [Wed 11 월 27 일 수요일 : 32 : 32.894114 2013] [코어 : 경고] [pid 4472 : tid 1640] [client :: 1 : 62407] C : /Users/kristineg/xamps/htdocs/xampp/tests/.htaccess : 여기에 허용되지 않는 옵션들
해당 줄의 주석 처리를 해제하고 .htaccess를 변경했지만 동일한 오류가 발생했습니다 : ( –
그 밖의 다른 것이 있어야합니다. 오류 로그를 확인할 수 있습니까? 'apache \ logs \ error.log'에 있어야합니다. – DaSourcerer
마지막 로그 레코드를 추가했습니다 .Hmm, ".htaccess : 여기에는 허용되지 않는 옵션"이 있습니다. 루트 폴더에 있습니다. –