일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- devops
- it
- Spring Boot
- JVM
- Gradle
- tool
- IntelliJ
- Design Patterns
- jsp
- 맛집
- springboot
- laravel
- AWS
- Git
- Oracle
- php
- javascript
- jenkins
- MySQL
- Spring
- elasticsearch
- Spring Batch
- redis
- 요리
- Web Server
- ReactJS
- ubuntu
- java
- linux
- db
Archives
- Today
- Total
아무거나
apache에서 index.php 죽이기 본문
반응형
1. /etc/apache2/sites-available/000-default.conf 에서 아래 내용을 추가
<Directory "/var/www/html/data/php7/zooma/branches/dev_1/ci">
AllowOverride All
</Directory>
2. index.php와 같은 경로에 아래내용을 추가하여 .htaccess를 생성한다.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index\.php|images|captcha|data|include|uploads|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
3. sudo a2enmod rewrite 명령어 실행
반응형
'PHP > PHP' 카테고리의 다른 글
php7+nginx 설치 (0) | 2019.03.28 |
---|---|
composer 설치 (0) | 2019.03.28 |
json_encode 함수 옵션 (0) | 2019.03.27 |
gd 라이브러리 관련 함수 (0) | 2019.03.27 |
PHP 이미지 파일 여부 체크 (0) | 2019.03.27 |
Comments