Codeigniter

 

아파치 수정

httpd.conf 

# Example:
# LoadModule foo_module modules/mod_foo.so
#

Include conf.modules.d/*.conf


LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so

 

vhost.conf

############### webtest11.com Start ###############
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com  ← 서버관리자(임의로 설정)       
#    DocumentRoot /home/test                       ← 홈디렉토리        
#    ServerName webtest11.com                       ← 연결할도메인(DNS설정이랑 같게해야함)
#    ServerAlias www.webtest11.com                ← 연결할도메인(다른 도메인, DNS설정이랑 같게해야함)
#    ErrorLog logs/dummy-host.example.com-error_log                     ← 에러로그(선택사항)
#    CustomLog logs/dummy-host.example.com-access_log common   ← 접속로그(선택사항)
# </VirtualHost>



<VirtualHost *:80>
#       ServerAdmin webmaster@dummy-host.example.com  # 
        DocumentRoot /var/www/html
        ServerName braverokmc79.cafe24.com
        ServerAlias www.braverokmc79.cafe24.com
#       ErrorLog logs/dummy-host.example.com-error_log
#       CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost *:81>
#       ServerAdmin webmaster@dummy-host.example.com  # 
        DocumentRoot /home/ebirdrent/php
        ServerName braverokmc79.cafe24.com
#        ServerAlias www.braverokmc79.cafe24.com
#       ErrorLog logs/dummy-host.example.com-error_log
#       CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
############### webtest11.com End #################

############### webtest22.com Start ###############

<VirtualHost *:80>
#       ServerAdmin webmaster@dummy-host.example.com  # 
        DocumentRoot /var/www/html/todollee
        ServerName todollee.cf
        ServerAlias www.todollee.cf
#       ErrorLog logs/dummy-host.example.com-error_log
#       CustomLog logs/dummy-host.example.com-access_log common

	<Directory "/var/www/html/todollee">    
		Options Indexes FollowSymLinks 
	    AllowOverride All
	    Order allow,deny
	    Allow from all
	    Require all granted
	</Directory>
</VirtualHost>
############### webtest11.com End #################

 

 

해당  home  지역에  여기서는  /var/www/html/todollee

이 파일은 index.php와 동일한 디렉토리에 위치

.htaccess 추가

<IfModule mod_rewrite.c>
		RewriteEngine On 
		RewriteRule !\.(gif|jpe?g|png|swf|css|js|htm|html|flv|cab|xml)|var(.+)storage.pdf(.+)\.pdf$ index.php
		DirectoryIndex index.php
</IfModule>

 

 

 

 

 

ci

 

about author

PHRASE

Level 60  라이트

도둑괭이가 살찌랴 , 언제나 남의 것만 탐내는 사람은 재산을 모으지 못하다는 말.

댓글 ( 4)

댓글 남기기

작성

Codeigniter 목록    more