httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Devendra Mananadhar <tyam...@gmail.com>
Subject [users@httpd] Reverse proxy and MOSS
Date Thu, 17 Sep 2009 17:06:58 GMT
Hi,

I have been trying to configure a Apache reverse proxy for some time
now. I need to setup a reverse proxy server(192.168.10.1) for
MOSS(192.168.10.2:9005). Here is the ReverseProxy.conf under
../conf.d/

***start***
NameVirtualHost 192.168.10.1:443

##This section was added by Tymapoo to entertain http access
<VirtualHost 192.168.10.1:80>
	ProxyRequests Off
	ServerName sharepoint.domain.com
	
	RewriteEngine On
	RewriteCond %{SERVER_PORT} !^443$
	RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
</VirtualHost>


<VirtualHost 192.168.10.1:443>
	ProxyRequests Off
	ServerName sharepoint.domain.com
		
	SSLEngine on
	SSLProtocol all -SSLv2
	SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
	SSLCertificateFile /etc/pki/tls/certs/sharepoint.domain.com.crt
	SSLCertificateKeyFile /etc/pki/tls/private/sharepoint.key
	SSLCertificateChainFile /etc/pki/tls/certs/gd_bundle.crt

	ProxyPass / http://192.168.10.2:9005/

	<Location />
		ProxyPass http://192.168.10.2:9005/
		ProxyPassReverse http://192.168.10.2:9005/
#		ProsyHTMLExtended enable to rewrite URLs in script and CSS
		ProxyHTMLExtended On
		SetOutputFilter proxy-html

#		Which tag to look for and and under which attribute to apply mappling
#		ref: http://apache.webthing.com/svn/apache/filters/proxy_html/proxy_html.conf

		ProxyHTMLLinks 	a		href
		ProxyHTMLLinks	area		href
		ProxyHTMLLinks	link		href
		ProxyHTMLLinks	img		src longdesc usemap
		ProxyHTMLLinks	object	classid codebase data usemap
		ProxyHTMLLinks	q		cite
		ProxyHTMLLinks	blockquote	  cite
		ProxyHTMLLinks	ins		cite
		ProxyHTMLLinks	del		cite
		ProxyHTMLLinks	form		action
		ProxyHTMLLinks	input		src usemap value
		ProxyHTMLLinks	head		profile
		ProxyHTMLLinks	base		href
		ProxyHTMLLinks	script	src for

#		Following are specifice to sharepoint/MOSS		
		ProxyHTMLLinks	iframe	filterlink
		ProxyHTMLLinks	div		helplink
		ProxyHTMLLinks	table		      o:webquerysourcehref
		ProxyHTMLLinks	ie:menuitem    onmenuclick

		ProxyHTMLEvents	onclick ondblclick onmousedown onmouseup \
				onmouseover onmousemove onmouseout onkeypress \
				onkeydown onkeyup onfocus onblur onload \
				onunload onsubmit onreset onselect onchange \
				onmenuclick

#		rewrite URLs of CSS
#		R = invoke regexp processing
#		i = make match case insensitive
#		h and e = save processing cycles by preventing the match being
applied to HTML links and scripting events
		ProxyHTMLURLMap url\(http://192\.168\.10\.2:9005([^\)]*)\)
url(https://sharepoint.domain.com$1) Rihe

#		rewrite HTML Links
#		R invokes regexp processing
#		l ask not to stop in first match
		ProxyHTMLURLMap http://192\.168\.10\.2:9005(.*)
https://sharepoint.domain.com$1 Rl

#		rewrite url generated by scripts
#		ref: http://marc.info/?l=apache-httpd-users&m=121486148810484&w=4
		ProxyHTMLURLMap (.*)http(.*)192\.168\.10\.2:9005(.*)
$1https$2sharepoint.domain.com$3 Rxl
		ProxyHTMLURLMap (.*)http(.*)192.168.10.2:9005(.*)
$1https$2sharepoint.domain.com$3 Rxl

#		RequestHeader unset Accept-Encoding
	</Location>


	ErrorLog logs/SharePoint.log
#	ErrorLog logs/ReverseProxy.log
	LogLevel warn

#   CustomLog logs/ReverseProxy-access.log combined
	CustomLog logs/SharePoint-access.log combined
	#This line is from ssl.conf
	TransferLog logs/ssl_access.log

#	ProxyPreserveHost On
</VirtualHost>

***end***

Things seemed to work; but when a user is in edit mode, edit
functionalities for web parts are not working.
Any help is appreciated.

Thank you,
Tyampoo

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message