# # Sample configuration file for cern_httpd for running it # as a proxy server WITH caching. # # See: # # # for more information. # # Written by: # Ari Luotonen April 1994 # # # Set this to point to the directory where you unpacked this # distribution, or wherever you want httpd to have its "home" # ServerRoot /usr/local/www # サーバのルートディレクトリです。 ServerType StandAlone # InetdとStandAloneの指定が出来ますが、StandAloneの方が動作が高速です。 # # Set the port for proxy to listen to # Port 8080 MaxContentLengthBuffer 1 K # ファイルをgetする時に、指定されたバイト数のデータを読むまでクライアントに # データを渡しません。 # # General setup; on some systems, like HP, nobody is defined so # that setuid() fails; in those cases use a different user id. # UserId nobody GroupId nogroup # 実行時のユーザIDとグループIDです。 # # Logging; if you want logging uncomment these lines and specify # locations for your access and error logs # ProxyAccessLog /usr/local/www/cern/log/proxy-log ErrorLog /usr/local/www/cern/log/error-log # ログを記録するファイルです。 LogFormat Common LogTime LocalTime # # *** TIMEOUTS *** # InputTimeOut 10 mins OutputTimeOut 10 hours ScriptTimeOut 5 mins CacheLockTimeOut 10 mins # # Pass the URLs that this proxy is willing to forward. # Pass http:* Pass ftp:* # 中継するプロトコルです。 # http,ftp,wais,gopherが指定できます。 # # Enable caching, specify cache root directory, and cache size # in megabytes # Caching On # キャッシュ機能を有効にします。 CacheRoot /usr/local/www/cern/cache # キャッシュを保存するディレクトリです。 CacheSize 100 M # キャッシュのサイズです。 CacheAccessLog /usr/local/www/cern/log/cache-log # キャッシュにアクセスした時のログを記録するファイルです。 # # Specify absolute maximum for caching time # CacheClean * 2 weeks # 指定された日数経過したキャッシュを消去します。 # # Specify the maximum time to be unused # CacheUnused http:* 1 week CacheUnused ftp:* 1 week # # Specify default expiry times for ftp and gopher; # NEVER specify it for HTTP, otherwise documents generated by # scripts get cached which is usually a bad thing. # CacheDefaultExpiry ftp:* 5 days # # Garbage collection controls; daily garbage collection at 1am; # Gc On GcDailyGc 1:00