Apache Virtual Hosts

/usr/local/etc/apache22/extra/httpd-vhosts.conf

<VirtualHost 219.117.246.222>
#    ServerAdmin webmaster
   DocumentRoot /usr/home/tfc/public_html
   ServerName www.thousand-winds.net
   ErrorLog /var/log/thousand-winds.net-error_log
   CustomLog /var/log/thousand-winds.net_log combined
   
#ディレクトリへのアクセスを許可しないと、
#client denied by server configuration:
#というエラーがでます
 
<Directory "/usr/home/tfc/public_html">
      Options FollowSymLinks
      AllowOverride None
      Order deny,allow
      Allow from all 
      </Directory>
</VirtualHost>

vi etc/newsyslog.conf

/var/log/thousand-winds.net_log		644  12    *    @01T05 Z  /var/run/httpd.pid
/var/log/thousand-winds.net-error_log		644  12    *    @01T06 Z  /var/run/httpd.pid

http://www.gside.org/Gentoo/apache/virtualhost.html 2008-10-31 (金) 05:44:19


トップ   編集 凍結解除 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2008-10-31 (金) 05:44:19