Configure mutiple IBM HTTP Server / Other Apache based WEB server on 1 physical server (Section 2)
Continue from the last article......
PidFile logs/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 10
<IfModule mpm_winnt.c>
ThreadLimit 2000
ThreadsPerChild 2000
MaxRequestsPerChild 0
</IfModule>
Win32DisableAcceptEx
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule alias_module modules/mod_alias.so
LoadModule dir_module modules/mod_dir.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule ibm_ssl_module modules/mod_ibm_ssl.so
LoadModule deflate_module modules/mod_deflate.so
ServerAdmin [email protected]
ServerName myaddress
UseCanonicalName Off
DocumentRoot "C:/WEB_SITE/myaddress.com"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
DirectoryIndex index.html
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
TypesConfig conf/mime.types
#DefaultType text/html
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/www_aia_error.log
LogLevel warn
LogFormat "%h %v %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\""
CustomLog logs/www_aia_access.log common
ServerTokens Prod
ServerSignature Off
AddType application/x-tar .tgz
AddType image/x-icon .ico
AddHandler type-map var
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
RewriteEngine On
RewriteCond %{REQUEST_METHOD} !^(GET|HEAD|POST)$
RewriteRule .* - [F]
##Need to remove
Loadmodule status_module modules/mod_status.so
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 10.50.165.0/255.255.255.0
</Location>
##Need to remove
Listen *:80
<VirtualHost *:80>
SSLDisable
EnableSendfile off
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
DefaultType text/html
ErrorDocument 500 /500.html
ErrorDocument 404 /404.html
AccessFileName .asp
<Files ~ (\.asp$)>
Order allow,deny
Deny from all
</Files>
DocumentRoot C:/WEB_SITE/myaddress.com
TransferLog "|bin/rotatelogs.exe C:/WEB_LOG/myaddress.com/access.%Y%m%d.log 86400 +480"
ErrorLog "|bin/rotatelogs.exe C:/WEB_LOG/myaddress.com/error.%Y%m%d.log 86400 +480"
</VirtualHost>
Please note the RED line, it means my IHS service will listen the port 80 of all the IP on this server. So let‘s modify it as below:
<VirtualHost 192.168.67.100:80>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。