なにげに MaxClients を 1000 とかにしたら起動時に怒られてしまいました。 "WARNING: MaxClients of 1000 exceeds compile time limit of 256 servers, lowering MaxClients to 256. To increase, please see the HARD_SERVER_LIMIT define in src/include/httpd.h."
>>189-190 Apache2.0.18-alphaのソースを見たところ こちらではPOSIXスレッドを サポートしているようですね ただ ---------------------------------------- NOTE: If you are building on FreeBSD, you should add the argument --with-mpm=prefork to the configure line. The Apache Group has discovered that threads do not work well with Apache on FreeBSD. For that reason, we disable threads by default on FreeBSD, and you need to build the prefork MPM. If you wish to try to make threads work on FreeBSD, they can be re-enabled by using --enable-threads ---------------------------------------- という但し書きが付いています 以下ソースからの抜粋は簡略化のため一部修正しています ---------------------------------------- The following MPMs currently exist:
prefork ....... Multi Process Model with Preforking (Apache 1.3) perchild ...... Multi Process Model with Threading. Constant number of processes, variable number of threads each child process can have a different uid/gid. threaded ...... Multi Process Model with Threading. Variable number of processes, constant number of threads/child (= Apache/thread) spmt_os2 ...... Single Process Model with Threading on OS/2 winnt ......... Single Process Model with Threading on Windows NT --[prefork/mpm_default.h]--------------- #define HARD_SERVER_LIMIT 256 #define HARD_THREAD_LIMIT 1 --[perchild/mpm_default.h]-------------- #define HARD_SERVER_LIMIT 8 #define HARD_THREAD_LIMIT 64 --[threaded/mpm_default.h]-------------- #ifdef NO_THREADS #define HARD_SERVER_LIMIT 256 #define HARD_THREAD_LIMIT 1 #else #define HARD_SERVER_LIMIT 8 #define HARD_THREAD_LIMIT 64 #endif --[spmt_os2/mpm_default.h]-------------- #define HARD_SERVER_LIMIT 1 #define HARD_THREAD_LIMIT 256 --[winnt/mpm_default.h]----------------- #define HARD_SERVER_LIMIT 1 #define HARD_THREAD_LIMIT 4096 ---------------------------------------- まぁOS次第ではHARD_*_LIMITの値はもっと増やしても大丈夫だろうとは思います
ドメイン名によるアクセス制限ってやらない方が良いのでしょうか? ちょっとプロバイダのDNSがムチャクチャ重いので、 Allow from .jp みたいな事をやると、レスポンスが激重になってしまいます。 これって、 HostnameLookups On と同様で、あまり誉められた行為ではないのでしょうか?
AuthConfig Allow use of the authorization directives (AuthDBMGroupFile, AuthDBMUserFile, AuthGroupFile, AuthName, AuthType, AuthUserFile, Require, etc.).
FileInfo Allow use of the directives controlling document types (AddEncoding, AddLanguage, AddType, DefaultType, ErrorDocument, LanguagePriority, etc.).
Indexes Allow use of the directives controlling directory indexing (AddDescription, AddIcon, AddIconByEncoding, AddIconByType, DefaultIcon, DirectoryIndex, FancyIndexing, HeaderName, IndexIgnore, IndexOptions, ReadmeName, etc.).
Limit Allow use of the directives controlling host access (Allow, Deny and Order).
Options Allow use of the directives controlling specific directory features (Options and XBitHack).