0
AWS의 yii에서 친숙한 URL을 사용하려면 어떻게해야하나요? 내부 오류 서버에 오류가 있습니다! AWS ec2의 내 서버에서 yii 프레임 워크를 사용합니다. YII의 내 응용 프로그램에서 나는이 콘텐츠를 가지고 htaccess로 :AWS의 YII에서 URL을 사용하도록 설정
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
#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
그럼 내가 가진 활성 mod_rewrite를 :
#a2enmod rewrite
가 그럼 난/편집 등/아파치/사이트-가능/defalut와 나는
<Directory /var/www/>
에
에 AllowOverride 모든 를 구성 그리고 내가 편집 : /var/www/myapp/protected/config/main.php
// uncomment the following to enable URLs in path-format
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
#'urlSuffix'=>'.asp',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view$
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<con$
'<controller:\w+>/<action:\w+>'=>'<controller>/$
),
),
마지막으로 아파치를 다시 시작 : 내 오류가 어디
sudo service apache2 restart
입니까 ?? 내 아파치 오류 로그 파일에서
이 오류가 있습니다
[Thu May 15 09:53:16 2014] [alert] /var/www/joc/.htaccess:RewriteCond: **bad argument line '%{REQUEST_FILENAME}!-f'
[Thu May 15 10:10:15 2014] [error] client denied by server configuration: /var/www/yii/framework/views/ar/log.php
과 나의 색인/난 내 응용 프로그램 폴더를 볼 수 없습니다, 난 내가이 없기 때문에 내가 액세스 할 수 suposed 권한!
고마워!
Yeees을! 고마워요 chris --- !!! – Kellazo