index.php 파일 지우기가 잘 안됩니다.
apm 설치하고 codeigniter를 다운받아서 폴더에 넣었습니다.
테스트 하고 있는곳은 virtual host로 설정된곳입니다. 포트번호 8881
http://localhost:8881/index.php/blog 하고 메세지가 제대로 나오는데
http://localhost:8881/blog하면 404 에러가 떨어지네요.
일단 제 설정은 아래와 같습니다.
1. htacess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond $1 !^(index\.php|images|js|css|uploads|document)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>
2. application/config
$config['index_page'] = '';
3. 아파치 설정
- http.conf 파일
LoadModule rewrite_module modules/mod_rewrite.so
- httpd-vhost.conf (아래와 같습니다.)
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:8881
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "C:\APM_Setup\XXX\www"
ServerName 127.0.0.1:80
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
<Directory "C:\APM_Setup\XXX\www">
Order allow,deny
Allow from all
AllowOverride All
Options +FollowSymLinks
</Directory>
</VirtualHost>
<VirtualHost *:8881>
ServerAdmin webmaster@localhost
DocumentRoot "C:\APM_Setup\biz
ServerName 127.0.0.1:8881
ErrorLog "logs/biz_error.log"
CustomLog "logs/biz_custom.log" common
<Directory "C:\APM_Setup\biz">
Order allow,deny
Allow from all
AllowOverride All
Options +FollowSymLinks
</Directory>
</VirtualHost>
여기저기 따라해보고 했는데도 안되는데
무엇을 빠뜨린건가요?
virtual host에서 해서 그런가요?
아닌거 같은데..
조언좀 주시면 감사하겠습니다.