タグ

2007年6月7日のブックマーク (3件)

  • apache 大量のバーチャルホストの動的な設定

    apache 大量のバーチャルホストの動的な設定 もっともメジャーなHTTPサーバである apache には、バーチャルホストと呼ばれる機能がある。IISにもあるので、まあ普通の機能なのだろう。 これは1つのサーバ機で、あたかも複数のHTTPサーバが動いているように見せかける機能である。NAT+と並び、IPv6の存在意義を否定する機能でもある。 比較的簡単にドメインを増やすことが出来るからといって、調子に乗って増やすと壁にぶち当たる。ログファイルを開けなくなるのだ。通常、1つのサイトはアクセスログとエラーログで2つのログファイルを開いている。普通のOSはファイルを同時に1024個しか開けないので512サイトが上限になってしまう。正面から対処すると、リコンパイルという大げさな話になってしまう。 そこで、Dynamically configured mass virtual hosting を

    hogem
    hogem 2007/06/07
  • Dynamically Configured Mass Virtual Hosting - Apache HTTP Server

    Motivation The techniques described here are of interest if your httpd.conf contains many <VirtualHost> sections that are substantially the same, for example: NameVirtualHost 111.22.33.44 <VirtualHost 111.22.33.44> ServerName www.customer-1.com DocumentRoot /www/hosts/www.customer-1.com/docs ScriptAlias /cgi-bin/ /www/hosts/www.customer-1.com/cgi-bin </VirtualHost> <VirtualHost 111.22.33.44> Serve

    hogem
    hogem 2007/06/07
    大量のバーチャルホストを設定するtips
  • http://platz.jp/howto/subdomain.html

    ユーザー毎にサブドメインを設定して利用する際の Apache の設定の方法 下記のようにバーチャルホストで設定することもできますが、毎回、書くのは 大変ですし、設定ファイルが増えてしまいます。 &ltVirtualHost *> DocumentRoot /home/user1/public_html ServerName user1.hogehoge.jp ServerAlias www.user1.hogehoge.jp </VirtualHost> &ltVirtualHost *> DocumentRoot /home/user2/public_html ServerName user2.hogehoge.jp ServerAlias www.user2.hogehoge.jp </VirtualHost> RewriteEngine を使った方法があるので、紹介します。 最初

    hogem
    hogem 2007/06/07