a) 修改/opt/aspire/product/mid/apache/conf/httpd.conf 在文档中找到Listen 80,修改此端口。并在此行下面添加如下内容: ##################################################################### mid config from here {{
Timeout 300 KeepAlive On MaxKeepAliveRequests 1000 KeepAliveTimeout 60
LoadModule fileiri_module modules/mod_fileiri.so <IfModule mod_fileiri.c> FileIRI On FilenameCharset GB2312 </IfModule>
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so <IfModule mod_proxy.c> #turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email. ProxyRequests Off
#Do not proxy balancer-manager #ProxyPass /balancer-manager !
<Proxy *> #AddDefaultCharset off Order deny,allow #Deny from all #Allow from .example.com Allow from all </Proxy>
# Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block # ProxyVia On </IfModule>
<Location /balancer-manager> SetHandler balancer-manager Order Deny,Allow Deny from all #Allow from all </Location> # mid config end here }} #################################################################### b) 修改/opt/aspire/product/mid/apache/conf/httpd.conf找到 ServerName localhost:8090 改为 ServerName 域名:端口
CustomLog "logs/access_log" common 改为 #CustomLog "logs/access_log" common CustomLog "|/opt/aspire/product/mid/apache/bin/rotatelogs -l /opt/aspire/product/mid/apache/logs/access-%Y-%W.log 1024M" common