Contents
- /etc/apache2/sites-available/eto.com
- /etc/apache2/sites-available/eto.com
- patch at /etc/apache2/
- Apache document for NameVirtualHost VirtualHost
Apache2 VirtualHost
VirtualHostを設定する。
# aptitude remove apache # aptitude install apache2 # vi /etc/default/apache2
NO_START=0
にする。
# rehash # a2enmod proxy
/etc/apache2/sites-available/eto.com
- example.comってのはとること
NameVirtualHost 219.106.226.202:80 <VirtualHost eto.com:80> ServerAdmin webmaster@eto.com.example.com DocumentRoot /var/www/ ServerName eto.com:80 CustomLog /var/log/apache2/eto.com-access.log combined ErrorLog /var/log/apache2/eto.com-error.log ProxyPass /d/ http://qwik.jp.example.com/eto.com/ ProxyPassReverse /d/ http://qwik.jp.example.com/eto.com/ ProxyPass /.theme/ http://qwik.jp.example.com/.theme/ ProxyPassReverse /.theme/ http://qwik.jp.example.com/.theme/ ProxyPass /wiki/ http://qwik.jp.example.com/etocomwiki/ ProxyPassReverse /wiki/ http://qwik.jp.example.com/etocomwiki/ </VirtualHost>
# a2ensite eto.com
/etc/apache2/sites-available/eto.com
NameVirtualHost 219.106.226.202:80 <VirtualHost modulobe.com:80> ServerAdmin webmaster@modulobe.com.example.com DocumentRoot /var/www/ ServerName modulobe.com:80 CustomLog /var/log/apache2/modulobe.com-access.log combined ErrorLog /var/log/apache2/modulobe.com-error.log ProxyPass / http://qwik.jp.example.com/modulobe.com/ ProxyPassReverse / http://qwik.jp.example.com/modulobe.com/ ProxyPass /.theme/ http://qwik.jp.example.com/.theme/ ProxyPassReverse /.theme/ http://qwik.jp.example.com/.theme/ </VirtualHost>
# /etc/init.d/apache2 start
patch at /etc/apache2/
--- ./ports.conf.org 2005-05-26 16:12:02.000000000 +0900 +++ ./ports.conf 2005-05-26 16:12:14.000000000 +0900 @@ -1,0 +2 @@ +ServerName eto.com --- ./sites-available/default.org 2005-05-26 15:28:42.000000000 +0900 +++ ./sites-available/default 2005-05-26 16:39:15.000000000 +0900 @@ -17 +17 @@ - RedirectMatch ^/$ /apache2-default/ + #RedirectMatch ^/$ /apache2-default/ --- ./mods-available/proxy.conf.org 2005-05-26 16:19:12.000000000 +0900 +++ ./mods-available/proxy.conf 2005-05-26 16:38:32.000000000 +0900 @@ -9,3 +9,2 @@ - Order deny,allow - Deny from all - #Allow from .your_domain.com + Order allow,deny + Allow from all
■Apache document for NameVirtualHost VirtualHost
- http://cvs.apache.jp/svn/httpd-docs/2.0/manual/mod/core.html.ja.euc-jp
- http://cvs.apache.jp/svn/httpd-docs/2.0/manual/vhosts/index.html.ja.euc-jp
# /usr/sbin/apache2 -S
とすると、設定ファイルの内容を表示する。デバッグに重要。
Last modified: 2007-05-07