서버 Apache/2.0.55 (Ubuntu) 입니다.
/etc/apache2/apache2.conf 에 httpd.conf,port.conf등을 인클루드하는 형태로 설정을 잡더군요.
질문의 요지는 하나의 ip:80 포트만 사용하여 두개의 도메인을 각각 다른 경로에 세팅해주는 방법입니다.
----------------------------------------
설정 파일가운데 호스트 관련 부분은 아래 내용이 전부입니다.
/etc/apache2/sites-available/default
/etc/apache2/sites-available/default
NameVirtualHost *
<VirtualHost *>
ServerAdmin master@gaetgol.net
DocumentRoot /home
#SerName gaetgol.net
#ServerAlias www.gaetgol.net
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>
<VirtualHost *>
ServerAdmin master@gaetgol.net
DocumentRoot /home
#SerName gaetgol.net
#ServerAlias www.gaetgol.net
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</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>
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
----------------------------------------
# 사용자 디렉토리
/etc/apache2/mods-enabled/userdir.conf
<IfModule mod_userdir.c>
UserDir www
UserDir disabled root
<Directory /home/*/www>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
</IfModule>
/etc/apache2/mods-enabled/userdir.conf
<IfModule mod_userdir.c>
UserDir www
UserDir disabled root
<Directory /home/*/www>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
</IfModule>
댓글 1개
takumi22
12년 전
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5630 | 13년 전 | 1070 | ||
| 5629 | 13년 전 | 2706 | ||
| 5628 | 13년 전 | 1286 | ||
| 5627 | 13년 전 | 1660 | ||
| 5626 | 13년 전 | 1292 | ||
| 5625 | 13년 전 | 1946 | ||
| 5624 | 13년 전 | 1359 | ||
| 5623 | 13년 전 | 947 | ||
| 5622 | 13년 전 | 422 | ||
| 5621 | 13년 전 | 13311 | ||
| 5620 | 13년 전 | 1193 | ||
| 5619 | 13년 전 | 3337 | ||
| 5618 | 13년 전 | 974 | ||
| 5617 | 13년 전 | 421 | ||
| 5616 | 13년 전 | 602 | ||
| 5615 |
Preware
|
13년 전 | 421 | |
| 5614 | 13년 전 | 554 | ||
| 5613 |
AMDbest
|
13년 전 | 4339 | |
| 5612 |
AMDbest
|
13년 전 | 6165 | |
| 5611 | 13년 전 | 874 | ||
| 5610 |
AMDbest
|
13년 전 | 4662 | |
| 5609 | 13년 전 | 965 | ||
| 5608 |
|
13년 전 | 487 | |
| 5607 | 13년 전 | 653 | ||
| 5606 | 13년 전 | 468 | ||
| 5605 | 13년 전 | 367 | ||
| 5604 | 13년 전 | 608 | ||
| 5603 |
갑수엔터테인먼트
|
13년 전 | 768 | |
| 5602 | 13년 전 | 426 | ||
| 5601 | 13년 전 | 508 | ||
| 5600 | 13년 전 | 933 | ||
| 5599 | 13년 전 | 7465 | ||
| 5598 |
PHPㅡASP프로그래머
|
13년 전 | 2699 | |
| 5597 | 13년 전 | 403 | ||
| 5596 |
hoinV
|
13년 전 | 994 | |
| 5595 | 13년 전 | 919 | ||
| 5594 | 13년 전 | 1059 | ||
| 5593 | 13년 전 | 4941 | ||
| 5592 |
|
13년 전 | 389 | |
| 5591 | 13년 전 | 891 | ||
| 5590 |
PHPㅡASP프로그래머
|
13년 전 | 2306 | |
| 5589 | 13년 전 | 1938 | ||
| 5588 |
바다로가자
|
13년 전 | 1637 | |
| 5587 |
PHPㅡASP프로그래머
|
13년 전 | 1825 | |
| 5586 | 13년 전 | 2743 | ||
| 5585 | 13년 전 | 397 | ||
| 5584 | 13년 전 | 1871 | ||
| 5583 | 13년 전 | 1306 | ||
| 5582 |
바다로가자
|
13년 전 | 3096 | |
| 5581 |
|
13년 전 | 3105 | |
| 5580 | 13년 전 | 919 | ||
| 5579 |
하하369
|
13년 전 | 3978 | |
| 5578 | 13년 전 | 1063 | ||
| 5577 | 13년 전 | 1232 | ||
| 5576 | 13년 전 | 1644 | ||
| 5575 |
가위바위보
|
13년 전 | 1593 | |
| 5574 |
danielle
|
13년 전 | 705 | |
| 5573 |
|
13년 전 | 857 | |
| 5572 | 13년 전 | 2776 | ||
| 5571 | 13년 전 | 832 | ||
| 5570 | 13년 전 | 1424 | ||
| 5569 |
|
13년 전 | 2129 | |
| 5568 | 13년 전 | 1956 | ||
| 5567 | 13년 전 | 679 | ||
| 5566 |
|
13년 전 | 1309 | |
| 5565 | 13년 전 | 3670 | ||
| 5564 | 13년 전 | 919 | ||
| 5563 | 13년 전 | 1373 | ||
| 5562 | 13년 전 | 871 | ||
| 5561 | 13년 전 | 1043 | ||
| 5560 |
PHPㅡASP프로그래머
|
13년 전 | 1529 | |
| 5559 | 13년 전 | 631 | ||
| 5558 |
there007
|
13년 전 | 1549 | |
| 5557 | 13년 전 | 1185 | ||
| 5556 |
후라보노보노
|
13년 전 | 742 | |
| 5555 | 13년 전 | 9130 | ||
| 5554 | 13년 전 | 826 | ||
| 5553 |
가을이군요
|
13년 전 | 714 | |
| 5552 |
|
13년 전 | 789 | |
| 5551 | 13년 전 | 1509 | ||
| 5550 |
후라보노보노
|
13년 전 | 914 | |
| 5549 |
|
13년 전 | 1009 | |
| 5548 | 13년 전 | 677 | ||
| 5547 | 13년 전 | 525 | ||
| 5546 | 13년 전 | 4608 | ||
| 5545 | 13년 전 | 906 | ||
| 5544 | 13년 전 | 1022 | ||
| 5543 | 13년 전 | 758 | ||
| 5542 | 13년 전 | 6632 | ||
| 5541 | 13년 전 | 807 | ||
| 5540 | 13년 전 | 1137 | ||
| 5539 | 13년 전 | 1116 | ||
| 5538 | 13년 전 | 2829 | ||
| 5537 | 13년 전 | 809 | ||
| 5536 | 13년 전 | 2702 | ||
| 5535 |
|
13년 전 | 1209 | |
| 5534 | 13년 전 | 1764 | ||
| 5533 |
꿈꾸는인생
|
13년 전 | 1331 | |
| 5532 | 13년 전 | 1496 | ||
| 5531 | 13년 전 | 1711 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기