차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판이전 판 | |||
tech:apache_virtual_host [2013/05/06 11:57] – V_L | tech:apache_virtual_host [2016/07/12 09:26] (현재) – 바깥 편집 127.0.0.1 | ||
---|---|---|---|
줄 1: | 줄 1: | ||
+ | {{tag> | ||
+ | ======Apache Virtual Host====== | ||
+ | |||
+ | |||
+ | |||
+ | 000-default 의 기본 설정이라면 | ||
+ | |||
+ | <code config> | ||
+ | < | ||
+ | ServerAdmin webmaster@localhost | ||
+ | |||
+ | DocumentRoot / | ||
+ | ServerName m.vaslor.net | ||
+ | < | ||
+ | Options FollowSymLinks | ||
+ | AllowOverride None | ||
+ | </ | ||
+ | < | ||
+ | Options Indexes FollowSymLinks MultiViews | ||
+ | AllowOverride None | ||
+ | Order allow,deny | ||
+ | allow from all | ||
+ | </ | ||
+ | |||
+ | ScriptAlias /cgi-bin/ / | ||
+ | < | ||
+ | AllowOverride None | ||
+ | Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch | ||
+ | Order allow,deny | ||
+ | Allow from all | ||
+ | </ | ||
+ | |||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | # Possible values include: debug, info, notice, warn, error, crit, | ||
+ | # alert, emerg. | ||
+ | LogLevel warn | ||
+ | |||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | Alias /doc/ "/ | ||
+ | < | ||
+ | Options Indexes MultiViews FollowSymLinks | ||
+ | AllowOverride None | ||
+ | Order deny,allow | ||
+ | Deny from all | ||
+ | Allow from 127.0.0.0/ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 두번째 가상 서버는 별도의 파일로 다음과 같이 해준다. | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ServerAdmin webmaster@localhost | ||
+ | |||
+ | DocumentRoot / | ||
+ | ServerName chat.vaslor.net | ||
+ | < | ||
+ | Options FollowSymLinks | ||
+ | AllowOverride None | ||
+ | </ | ||
+ | < | ||
+ | Options Indexes FollowSymLinks MultiViews | ||
+ | AllowOverride None | ||
+ | Order allow,deny | ||
+ | allow from all | ||
+ | </ | ||
+ | |||
+ | LogLevel warn | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | chat.vaslor.net 으로 접속하는 경우 / | ||
+ | |||
+ | |||
+ | |||
+ | * http:// | ||
+ | |||
+ | =====where is other_vhosts_access.log configured? | ||
+ | etc/ | ||
+ | |||
+ | < | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | |||
+ | Comment out the last line. | ||
+ | |||
+ | |||
+ | ^ 누구나 수정하실 수 있습니다. | ||
+ | |||