차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
| tech:apache_virtual_host [2012/10/03 04:12] – 새로 만듦 14.32.18.124 | tech:apache_virtual_host [2016/07/12 00:56] (현재) – 바깥 편집 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. | ||
| + | |||
| + | |||
| + | ^ 누구나 수정하실 수 있습니다. | ||
| + | |||