목차 열기

티스토리 뷰

Ubuntu

[Apache2] 아파치2 구성 / Configuration

RuungJi · 2021. 1. 24. 17:54
728x90
반응형

 

0. 구성 Configuration
1. 로그 Logs
2. 명령어

 

0. 구성 Configuration

아파치 기본 디렉토리

/etc/apache2

 

아파치 기본 설정 파일

/etc/apache2/apache2.conf

 

포트 설정 파일

/etc/apache2/ports.conf

 

Virtual Host 가능 디렉토리

/etc/apache2/sites-available/

 

Virtual Host 가능 디렉토리

/etc/apache2/sites-enabled/

심볼릭 링크로 파일을 참조한다. ex) ../sites-available/000-default.conf

 

vi /etc/apache2/sites-available/000-default.conf

#Index

 

1. 로그 Logs

vi /var/log/apache2/access.log

 

vi /var/log/apache2/error.log

#Index

 

2. 명령어

ensite / dissite

sudo a2ensite 000-default.conf

sudo a2dissite 000-default.conf

 

enmod / dismod

sudo a2enmod rewrite

sudo a2dismod rewrite

 

ex) a2enmod proxy proxy_http rewrite proxy_balancer

 

모듈 설정 확인

apachectl -M

 

#Index

728x90
반응형
댓글
글 보관함
«   2024/05   »
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 31
Total
Today
Yesterday