2012-11-15 8 views
1

아마존 EC2, bitnami LAMP AMI를 사용하고 있습니다. 최근에 다른 웹 사이트 (예 : www.website.com/foldername/)를 테스트 할 수 있도록 최근에 폴더를 추가했습니다. 해당 폴더에 chmod 777을 했으므로 액세스 할 수 있지만 문제는 내가 위치한 주 페이지에만 액세스 할 수 있습니다. 내가 다른 페이지를 클릭하면 www.website.com/foldername/는 나에게 내가 템플릿을 사용 아마존을 일부러 다른 사람들을 위해 일을 알고에서404 파일을 찾을 수 없습니다.

Not Found 

The requested URL /foldername/landing was not found on this server. 

를 반환, 다음 내 htaccess로입니다

SetEnv APPLICATION_ENV development 

Options -Indexes 
Options +FollowSymLinks 
DirectoryIndex index.php index.html 

<IfModule mod_rewrite.c> 
RewriteEngine on 

RewriteBase/

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 

RewriteRule ^(.*)\?*$ index.php [L,QSA] 

#remove www. 
#RewriteCond %{HTTPS} off 
#RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] 
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L] 

#RewriteRule ^(.*\.(png|jpg|jpeg|gif))$ index.php?controller=minify&action=index&file_path=$1&ext=$2 [L,NC] 
#RewriteRule ^(.*\.(css|js))$ index.php?controller=minify&action=jscss&file_path=$1&ext=$2 [L,NC] 

</IfModule> 

ErrorDocument 404 index.php 

<ifModule mod_expires.c> 
ExpiresActive On 
ExpiresDefault "access plus 1 seconds" 
ExpiresByType application/x-javascript "access plus 216000 seconds" 
</ifModule> 

<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|cache)$"> 
Order Allow,Deny 
Deny from all 
</FilesMatch> 

누군가 나를 도와 줄 수 있기를 바랍니다. : \

답변

0

실제로 아파치 문제였습니다. 죄송합니다! :) 생산을 위해 bitnami를 사용하지 말 것을 권유 받았는데, 그 이유는 아파치가 어떤 것들을 무력화 시켰기 때문입니다.

관련 문제