Showing posts with label Apache Sharepoint. Show all posts
Showing posts with label Apache Sharepoint. Show all posts

Wednesday, December 14, 2016

Apache reverse proxy to SharePoint 2013

Apache reverse proxy to SharePoint 2013


1. Introduction:

In this tutorial, we will setup a reverse proxy Apache in front end connecting to a SharePoint server 2013.
Let's assume we have this environment configuration:

SharePoint server: 
  • Local IP address: 192.168.137.21
  • Server Name: srvsharepoint
  • SharePoint site collection: http://srvsharepoint/
SharePoint web application is created on port 80. SharePoint site collection is created under the root.

Apache server:
  • Local IP address: 192.168.137.22
  • Public IP address: 52.174.6.110
  • Domain name: webadmin.net
  • Server name: srvweb
  • OS: CentOS 7
 2. Configure Apache:

 In CentOS server, we need to set the server names in hosts


 Install Apache server

#yum install httpd -y


 Start Apache:

#service httpd start
#chkconfig httpd on

Verify Apache



Go to the Apache config directory and create proxy.conf

#vi /etc/httpd/conf.d/proxy.conf 


<IfModule mod_proxy.c>

ProxyRequests Off
ProxyPreserveHost On
ProxyReceiveBufferSize 4096

<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>
ProxyPass / http://srvsharepoint/
ProxyPassReverse / http://srvsharepoint/

<Location />
Order allow,deny
Allow from all
</Location>



 Save proxy.conf

 Restart Apache

 Now Apache is configured as a reverse proxy.

3. Configure SharePoint Server:

Log to Central Administration, go to System Settings - Configure alternate access mapping

Select Alternate Access Mapping Collection SharePoint -80 the Add Internal URLs


in URL, host and port, enter the domain name and select zone internet


Save

4. Verification:

Open Internet Explorer and type the domain name