Category Archives: TCP

Apache configured as reverse proxy

There has been frequent needs for a reverse proxy server. a nice doc here: http://www.apacheweek.com/features/reverseproxies Apache 1.3 here: http://httpd.apache.org/docs/mod/mod_proxy.html Apache 2.0 http://httpd.apache.org/docs-2.0/mod/mod_proxy.html The #1 difference btw forward and reverse proxy is forward proxy doesn’t change the destionation server while the reverse … Continue reading

Posted in apache2, TCP | Leave a comment

ProxyCfg WinHTTP and WinInet IE

Thanks for Ari to clarify on what exactly this tool will set programmtically. Proxy and WinHttp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/proxycfg_exe__a_proxy_configuration_tool.asp "Actually, this tool only sets the proxy settings for winhttp which is a different client http stack then WinInet (the one used by … Continue reading

Posted in TCP | 2 Comments

stunnel adding SSL to Apache

To troubeshoot some WAS edge invaliation problem, I’ve tried used stunnel proxying for apache server  on both Linux and Windows. stunnel.conf for STUNNEL 4.x ========== foreground=yes (for debug) debug=6 (debug =7 for max). [mytest] accept=443 connect=80 steps: stunnel stunnel.conf (stunnel binds … Continue reading

Posted in TCP | Leave a comment

a simple but userful multithreaded TCP server in Python

I wrote this piece of code for binding a TCP port and listen for any incoming request and dump them on the stdout.   Two usages has been proved useful so far: 1. to simulate a "server not responsing", TCP connect established … Continue reading

Posted in TCP | Leave a comment