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



6 comments:

  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru Dot Net Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
    or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.

    ReplyDelete
  2. Join Main Bareng Di PelangiQQ Situs Bandarq Terpercaya & Teraman Menyediakan 8 Game Terpopuler Di Dan Pastinya Dengan Persentase Kemenangan Lebih Besar Lagi Tunggu Apa Lagi Join Sekarang!
    contact PelangiQQ:
    BBM: E37271BF
    WA:+6281231804952
    LINE: PELANGIQQ
    Facebook : Rachel Gunawan

    ReplyDelete
  3. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging.
    python course in pune
    python course in chennai
    python Training in Bangalore

    ReplyDelete
  4. Thank you for allowing me to read it, welcome to the next in a recent article. And thanks for sharing the nice article, keep posting or updating news article.
    Data Science Training in Indira nagar
    Data Science Training in btm layout
    Python Training in Kalyan nagar
    Data Science training in Indira nagar
    Data Science Training in Marathahalli

    ReplyDelete
  5. I appreciate your efforts because it conveys the message of what you are trying to say. It's a great skill to make even the person who doesn't know about the subject could able to understand the subject . Your blogs are understandable and also elaborately described. I hope to read more and more interesting articles from your blog. All the best.
    Best Devops Training in pune
    Microsoft azure training in Bangalore
    Power bi training in Chennai

    ReplyDelete
  6. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    rpa training in bangalore
    best rpa training in bangalore
    rpa training in pune | rpa course in bangalore
    rpa training in chennai

    ReplyDelete