[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    [users@httpd] use apache event module with forward proxy, how to tuning?
From:       <altman87120 () gmail ! com>
Date:       2013-01-29 6:31:53
Message-ID: 4B2C187B-D5DB-47CA-964E-B21DEFD8F1DB () gmail ! com
[Download RAW message or body]

Greetings.
We use apache as our forward proxy. This is the basic machine status, And we only run \
apache as a purpose.

OS: FreeBSD frontendc.cnwisp.com 9.1-RELEASE FreeBSD 9.1-RELEASE
CPU: Quad-Core AMD Opteron(tm) Processor 2384 x 2
Memory: 8192 MB

Some days passed, we had  lots of questions  about how to tuning the apache as a \
forward proxy. This is our base config for the base function.


Listen 10.10.0.1:2212
ExtendedStatus On
ServerRoot "/usr/local/apache2"
DocumentRoot "/usr/local/apache2/htdocs"
ErrorLog "/var/log/apache2/error.log"
FilterDeclare MYFILTER
FilterProvider  MYFILTER  SUBSTITUTE "%{CONTENT_TYPE} >= 'text/html'"
FilterProvider  MYFILTER  SUBSTITUTE "%{CONTENT_TYPE} >= 'text/plain'"
FilterProvider  MYFILTER  SUBSTITUTE "%{CONTENT_TYPE} >= 'application/json'"
FilterProvider  MYFILTER  SUBSTITUTE "%{CONTENT_TYPE} >= 'application/xhtml+xml'"

<IfModule mod_proxy.c>
ProxyRequests On
ProxyVia On
NoProxy localhost
ProxyBadHeader Ignore
ProxyPreserveHost On
FilterChain     MYFILTER
FilterTrace     MYFILTER 1
FilterProtocol  MYFILTER SUBSTITUTE change=1:1
Substitute "s|ourtextforfilter|thefilterresult|ni"
RequestHeader unset Accept-Encoding
</IfModule>


And we found the doc
http://httpd.apache.org/docs/current/mod/event.html
http://httpd.apache.org/docs/current/mod/mpm_common.html
there are lots of directives. Which should i tuning for my os and my httpd.conf


[Attachment #3 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space; ">Greetings.<div>We use apache as our \
forward proxy. This is the basic machine status, And we only run apache as a <font \
color="#313131" face="Arial, sans-serif"><span style="font-size: \
12px;">purpose.</span></font></div><div><font color="#313131" face="Arial, \
sans-serif"><span style="font-size: \
12px;"><br></span></font></div><div>OS:&nbsp;FreeBSD <a \
href="http://frontendc.cnwisp.com">frontendc.cnwisp.com</a> 9.1-RELEASE FreeBSD \
9.1-RELEASE</div><div>CPU:&nbsp;Quad-Core AMD Opteron(tm) Processor 2384 x \
2</div><div>Memory:&nbsp;8192 MB</div><div><br></div><div>Some days passed, we had \
&nbsp;lots of questions &nbsp;about how to tuning the apache as a forward proxy. This \
is our base config for the base \
function.</div><div><div><br></div><div><br></div><div>Listen \
10.10.0.1:2212</div><div>ExtendedStatus On</div><div>ServerRoot \
"/usr/local/apache2"</div><div>DocumentRoot \
"/usr/local/apache2/htdocs"</div><div>ErrorLog \
"/var/log/apache2/error.log"</div><div>FilterDeclare \
MYFILTER</div><div>FilterProvider &nbsp;MYFILTER &nbsp;SUBSTITUTE "%{CONTENT_TYPE} \
&gt;= 'text/html'"</div><div>FilterProvider &nbsp;MYFILTER &nbsp;SUBSTITUTE \
"%{CONTENT_TYPE} &gt;= 'text/plain'"</div><div>FilterProvider &nbsp;MYFILTER \
&nbsp;SUBSTITUTE "%{CONTENT_TYPE} &gt;= 'application/json'"</div><div>FilterProvider \
&nbsp;MYFILTER &nbsp;SUBSTITUTE "%{CONTENT_TYPE} &gt;= \
'application/xhtml+xml'"</div><div><br></div><div>&lt;IfModule \
mod_proxy.c&gt;</div><div>ProxyRequests On</div><div>ProxyVia On</div><div>NoProxy \
localhost</div><div>ProxyBadHeader Ignore</div><div>ProxyPreserveHost \
On</div><div>FilterChain &nbsp; &nbsp; MYFILTER</div><div>FilterTrace &nbsp; &nbsp; \
MYFILTER 1</div><div>FilterProtocol &nbsp;MYFILTER SUBSTITUTE \
change=1:1</div><div>Substitute \
"s|ourtextforfilter|thefilterresult|ni"</div><div>RequestHeader unset \
Accept-Encoding</div><div>&lt;/IfModule&gt;</div></div><div><br></div><div><br></div><div>And \
we found the doc</div><div><a \
href="http://httpd.apache.org/docs/current/mod/event.html">http://httpd.apache.org/docs/current/mod/event.html</a></div><div><a \
href="http://httpd.apache.org/docs/current/mod/mpm_common.html">http://httpd.apache.org/docs/current/mod/mpm_common.html</a></div><div>there \
are lots of directives. Which should i tuning for my os and my \
httpd.conf</div><div><br></div><div><br></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic