				Setting up Chelsio Unified Manager Windows management station
				=============================================================


Assumptions in the below steps
-------------------------------

On Windows 2008 R2 management station machine, No other web server like IIS is running on TCP port 80



"C:\WebUIPkg" - windows mgmt station package path

"C:\python26" - Path where python was installed

"C:\Program Files (x86)\Apache Software Foundation\Apache2.2" - Path where Apache was installed.


	[Please substitute with actual installation path in the below steps, wherever required]


***************************************************************************************************



1. Download and install Apache 2.2 with SSL

http://www.apache.org/dist/httpd/binaries/win32/httpd-2.2.21-win32-x86-openssl-0.9.8r.msi



2. Download and install Python 2.6

http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi


3. Append following lines in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\Conf\httpd.conf


====================================================================================================

ScriptAlias /python/  "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/chelsio/python/"

<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/chelsio/python/">
    PythonPath "['C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/chelsio/python']+sys.path"
    SetHandler mod_python
    PythonHandler mod_python.publisher
    PythonDebug on
</Directory>

LoadModule python_module modules/mod_python.so
ThreadStackSize 8388608

=======================================================================================================


4. Do the Following in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\Conf\httpd.conf

	a. Change "DocumentRoot" to C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/chelsio

	b. Un Comment "LoadModule rewrite_module modules/mod_rewrite.so"

	c. Uncomment "Include conf/extra/httpd-ssl.conf"

	d. Uncomment "LoadModule ssl_module modules/mod_ssl.so"
 	
	e. Add the following lines:
		i) RewriteEngine On

		ii) RewriteCond %{HTTPS} !=on

		iii) RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]



5. Execute the following lines in command prompt and provide info to generate the SSL cerificate and keys

=======================================================================================================

cd "C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf"
..\bin\openssl req -config openssl.cnf -new -out blarg.csr -keyout blarg.pem
..\bin\openssl rsa -in blarg.pem -out blarg.key
..\bin\openssl x509 -in blarg.csr -out blarg.crt -req -signkey blarg.key -days 365


=======================================================================================================


6. Do the following in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\extra\httpd-ssl.conf


Modify "SSLCertificateFile" to C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\blarg.crt

Modify "SSLCertificateKeyFile" to  C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\blarg.key




7. Start the management station service, if not running.


8. Restart Apache server



Note:

i) On some installations Apache is seen to reporting problems about SSL cache. In that case
do the following in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\extra\httpd-ssl.conf

Uncomment the following line 

	SSLSessionCache         "dbm:C:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/ssl_scache"

Comment the following line

	SSLSessionCache        "shmcb:C:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/ssl_scache(512000)"

ii)  Please make sure to stop apache before uninstalling/installing  the UM ( management station ).
iii) Please make sure that the path to python binary( typically "C:\Python26"), is added to PATH system variable. 
iv)  If any thing goes wrong, please have a look at Windows event log and take necessary action.     
