Apache2の設定

# diff -r apache2 aqua/apache2|less
  • もろもろ設定ファイルをコピーする.
Only in aqua/apache2: Makefile

Only in aqua/apache2/mods-available: dav_svn.conf
Only in aqua/apache2/mods-available: dav_svn.load

diff -r apache2/mods-available/proxy.conf aqua/apache2/mods-available/proxy.conf
9,11c9,10
<               Order deny,allow
<               Deny from all
<               #Allow from .your_domain.com
---
>               Order allow,deny
>               Allow from all

diff -r apache2/ports.conf aqua/apache2/ports.conf
1a2
> ServerName eto.com
Only in aqua/apache2: ports.conf.org

diff -r apache2/sites-available/default aqua/apache2/sites-available/default
17c17
<               RedirectMatch ^/$ /apache2-default/
---
>               #RedirectMatch ^/$ /apache2-default/
Only in aqua/apache2/sites-available: default.org
Only in aqua/apache2/sites-available: eto.com
Only in aqua/apache2/sites-available: modulobe.com
Only in aqua/apache2/sites-available: modulobe.com-2005May26

Only in aqua/apache2: watch-access.log
Only in aqua/apache2: watch-error.log

enableする

# a2enmod proxy
# a2enmod dav
# a2ensite eto.com
# a2ensite modulobe.com
# make
/etc/init.d/apache2 force-reload
Forcing reload of web server: Apache2[Tue Sep 20 11:30:44 2005] [warn] NameVirtualHost modulobe.com:80 has no VirtualHosts                                     
[Tue Sep 20 11:30:44 2005] [warn] NameVirtualHost www.modulobe.com:80 has no VirtualHosts                                                                      
[Tue Sep 20 11:30:44 2005] [warn] NameVirtualHost wiki.modulobe.com:80 has no VirtualHosts                                                                     
[Tue Sep 20 11:30:45 2005] [warn] NameVirtualHost modulobe.com:80 has no VirtualHosts                                                                          
[Tue Sep 20 11:30:45 2005] [warn] NameVirtualHost www.modulobe.com:80 has no VirtualHosts                                                                      
[Tue Sep 20 11:30:45 2005] [warn] NameVirtualHost wiki.modulobe.com:80 has no VirtualHosts                                                                     
.

確認する.

telnet eto.com 80 GET /d/ HTTP/1.0 Server: eto.com

Last modified: 2006-09-05