일단 잘한건지 못한건지는 모르겠습니다
하여간 아파치 사이트에 가니까 문서에 나와 있군요.
아파치 사이트에 있는, 제가 사용한 방법이 있는 부분만 긁어 붙이겠습니다.
죄송합니다. 잠을 자야하기 때문에...
<H2>Simple dynamic virtual hosts</H2>
This extract from httpd.conf implements the virtual host arrangement outlined in the Motivation section above, but in a
generic fashion using mod_vhost_alias. # get the server name from the Host: header
UseCanonicalName Off
# this log format can be split per-virtual-host based on the first field
LogFormat "%V %h %l %u %t "%r" %s %b" vcommon
CustomLog logs/access_log vcommon
# include the server name in the filenames used to satisfy requests
VirtualDocumentRoot /www/hosts/%0/docs
VirtualScriptAlias /www/hosts/%0/cgi-bin
This configuration can be changed into an IP-based virtual hosting solution by just turning UseCanonicalName Off into U
seCanonicalName DNS. The server name that is inserted into the filename is then derived from the IP address of the virtu
al host. 여기에서 %0은 클라이어트측에서 요구한 전체 URL을 말합니다. %1을 하면 .(Dot)을 기
준을 맨 앞에, %2는 두번째가 되는 식이라구 써 있는 것 같네요. 제가 Dynamic DNS를 받는 곳이
dynip.com이구 제가 신청한 호스트 이름이 aaa라면 클라이언트측에서는 당연히 aaa.dynip.com을
들어올거고, 저는 /home/aaa/public_html을 만들고 VirtualDocumentRoot /home/%1/public_html VirtualScriptAlias
/home/%1/public_html/cgi-bin 이렇게 했는데, 안되리라는 예상을 깨고 되네요.
아주 간단하게시리...
: 좀 황당한 질문인 것 같은데요.
: 다른 건 다 안되도 상관없습니다. 어차피 저만 접속을 하면 되니까요.
:
: 다른게 아니구요, 제가 한통 ADSL을 쓰는데, Dynamic DNS 서비스를 해 주는 업체를 통해서 외
: 부에서 제 홈을 접속할 수 있습니다.
: 그런데, 욕심이 생겨서 가상으로 웹 가상 서버를 운영하려구 하거든요.
:
: 참 막막한 상황인게, 유동 IP이다 보니 name 서버를 사용할 수 가 없습니다.
:
: 그런 상황에서 지금까지 올라온 글에서 저와 같은 상황을 발견할 수가 없네요.
:
: 아파치에서 virtual host를 사용하려면 name 서버가 필요하다구 해서요.
:
: 어떻게 제 리눅스에서 virtual host를 사용할 수 없을까요???
:
: 고수님들의 많은 지도 부탁드립니다