1. 도메인 설정파일
cd /etc/apache2/sites-available
예시> www.xxxxxxxxx.com 파일내용
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/www.xxxxxxxxx.com
ServerName www.xxxxxxxxx.com
ServerAlias m.xxxxxxxxx.com
ServerAlias xxxxxxxxx.com
ServerAlias www.xxxxxxxxx.kr
ServerAlias m.xxxxxxxxx.kr
ServerAlias xxxxxxxxx.kr
ServerAlias xn--2z1bl8qwuchxt.kr
ServerAlias xn--m.-qh7iv25ab8d23z.kr
ServerAlias xn--www.-ey2qf60cpofo55a.kr
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/www.bbongdisk.com/>
DirectoryIndex index.php
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.bbongdisk.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.bbongdisk.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
a2ensite www.xxxxxxxxx.com
service apache2 reload
'리눅스 프로그래밍 > 리눅스 명령어' 카테고리의 다른 글
우분투 시간 설정하기 (0) | 2015.01.06 |
---|---|
우분투 아파치 경로설정 (0) | 2014.10.16 |
리눅스 하드웨어 사양 확인 명령어 (0) | 2014.08.06 |
패키지 설치 확인 (0) | 2014.01.21 |
우분트 콘솔 한글 깨짐 (0) | 2014.01.20 |