서버 Apache/2.0.55 (Ubuntu) 입니다.
/etc/apache2/apache2.conf 에 httpd.conf,port.conf등을 인클루드하는 형태로 설정을 잡더군요.
질문의 요지는 하나의 ip:80 포트만 사용하여 두개의 도메인을 각각 다른 경로에 세팅해주는 방법입니다.
----------------------------------------
설정 파일가운데 호스트 관련 부분은 아래 내용이 전부입니다.
/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>
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 /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
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>
</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>
댓글 5개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 467 | ||
| 7929 | 9년 전 | 405 | ||
| 7928 | 9년 전 | 479 | ||
| 7927 | 9년 전 | 382 | ||
| 7926 | 9년 전 | 693 | ||
| 7925 | 9년 전 | 415 | ||
| 7924 | 9년 전 | 400 | ||
| 7923 | 9년 전 | 386 | ||
| 7922 | 9년 전 | 417 | ||
| 7921 | 9년 전 | 434 | ||
| 7920 | 9년 전 | 344 | ||
| 7919 | 9년 전 | 354 | ||
| 7918 | 9년 전 | 508 | ||
| 7917 | 9년 전 | 363 | ||
| 7916 | 9년 전 | 450 | ||
| 7915 | 9년 전 | 459 | ||
| 7914 | 9년 전 | 471 | ||
| 7913 | 9년 전 | 648 | ||
| 7912 | 9년 전 | 476 | ||
| 7911 | 9년 전 | 400 | ||
| 7910 | 9년 전 | 458 | ||
| 7909 | 9년 전 | 566 | ||
| 7908 | 9년 전 | 507 | ||
| 7907 | 9년 전 | 434 | ||
| 7906 | 9년 전 | 458 | ||
| 7905 | 9년 전 | 433 | ||
| 7904 | 9년 전 | 417 | ||
| 7903 | 9년 전 | 427 | ||
| 7902 | 9년 전 | 598 | ||
| 7901 |
|
9년 전 | 770 | |
| 7900 | 9년 전 | 661 | ||
| 7899 | 9년 전 | 440 | ||
| 7898 | 9년 전 | 439 | ||
| 7897 | 9년 전 | 401 | ||
| 7896 | 9년 전 | 415 | ||
| 7895 | 9년 전 | 535 | ||
| 7894 | 9년 전 | 439 | ||
| 7893 | 9년 전 | 424 | ||
| 7892 | 9년 전 | 457 | ||
| 7891 | 9년 전 | 815 | ||
| 7890 | 9년 전 | 1232 | ||
| 7889 | 9년 전 | 770 | ||
| 7888 |
limsy1987
|
9년 전 | 579 | |
| 7887 | 9년 전 | 631 | ||
| 7886 | 9년 전 | 514 | ||
| 7885 | 9년 전 | 484 | ||
| 7884 | 9년 전 | 470 | ||
| 7883 | 9년 전 | 489 | ||
| 7882 | 9년 전 | 544 | ||
| 7881 | 9년 전 | 521 | ||
| 7880 | 9년 전 | 633 | ||
| 7879 | 9년 전 | 520 | ||
| 7878 | 9년 전 | 1294 | ||
| 7877 | 9년 전 | 816 | ||
| 7876 | 9년 전 | 563 | ||
| 7875 | 9년 전 | 632 | ||
| 7874 |
|
9년 전 | 833 | |
| 7873 | 9년 전 | 553 | ||
| 7872 | 9년 전 | 728 | ||
| 7871 | 9년 전 | 543 | ||
| 7870 | 9년 전 | 659 | ||
| 7869 | 9년 전 | 475 | ||
| 7868 | 9년 전 | 519 | ||
| 7867 | 9년 전 | 524 | ||
| 7866 | 9년 전 | 581 | ||
| 7865 | 9년 전 | 525 | ||
| 7864 | 10년 전 | 582 | ||
| 7863 | 10년 전 | 575 | ||
| 7862 | 10년 전 | 533 | ||
| 7861 | 10년 전 | 703 | ||
| 7860 | 10년 전 | 681 | ||
| 7859 | 10년 전 | 451 | ||
| 7858 | 10년 전 | 773 | ||
| 7857 | 10년 전 | 1157 | ||
| 7856 | 10년 전 | 579 | ||
| 7855 | 10년 전 | 817 | ||
| 7854 | 10년 전 | 754 | ||
| 7853 | 10년 전 | 654 | ||
| 7852 | 10년 전 | 570 | ||
| 7851 | 10년 전 | 582 | ||
| 7850 | 10년 전 | 648 | ||
| 7849 | 10년 전 | 413 | ||
| 7848 | 10년 전 | 473 | ||
| 7847 | 10년 전 | 729 | ||
| 7846 | 10년 전 | 503 | ||
| 7845 | 10년 전 | 487 | ||
| 7844 | 10년 전 | 441 | ||
| 7843 | 10년 전 | 487 | ||
| 7842 | 10년 전 | 466 | ||
| 7841 | 10년 전 | 431 | ||
| 7840 | 10년 전 | 450 | ||
| 7839 | 10년 전 | 512 | ||
| 7838 | 10년 전 | 557 | ||
| 7837 | 10년 전 | 389 | ||
| 7836 | 10년 전 | 446 | ||
| 7835 | 10년 전 | 527 | ||
| 7834 |
|
10년 전 | 1229 | |
| 7833 | 10년 전 | 496 | ||
| 7832 | 10년 전 | 468 | ||
| 7831 | 10년 전 | 631 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기