<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can we host a web server and ArcGIS Enterprise on same linux system? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-can-we-host-a-web-server-and-arcgis-enterprise/m-p/543178#M21025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To answer my own question, this is how we resolved the problem of hosting web pages and running web adaptor on the same Linux machine, in our case Red Hat Enterprise Linux 7.6:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;OL style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 10px 0px 0px;"&gt;&lt;LI&gt;It turns out that Tomcat can be configured as a reverse-proxy server using a servlet. I installed HTTPProxyServlet from http://www.servletsuite.com/servlets/httpproxy.htm and configured it to forward requests with '/apps' in the URL to Apache httpd. There are other more up-to-date servlets out there but this one was simple to configure and use.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;The Servlet (described above) matches&amp;nbsp;a url path string (e.g. &lt;EM&gt;/apps&lt;/EM&gt;), deletes it and everything after it, and forwards it to the web-server (httpd aka Apache) at&amp;nbsp;&lt;EM&gt;http://yourserver.domain:port.&lt;/EM&gt;&amp;nbsp;Note it is not using SSL and in this case is listening to port 8080 (via a Virtual Host/Server). Port 8080 is blocked from external IP addresses for security.&lt;/LI&gt;&lt;LI&gt;A ReWriteRule was added to httpd's Directives file (/etc/httpd/conf/httpd.conf) that adds the removed paths&amp;nbsp;and whatever string was in the original url after them. So the final url looks like: '_/path1/path2/SomeStringHere' to follow the file system path to the web app content.&lt;/LI&gt;&lt;LI&gt;Removing and replacing strings is necessary because the proxy is not dynamic; it only forwards to one endpoint. This workflow makes the requests dynamic.&lt;/LI&gt;&lt;LI&gt;Currently it is necessary to have the trailing slash at the end of the string. If this '&lt;STRONG&gt;/&lt;/STRONG&gt;' is missing any relative paths in the web app will be broken and the app will not load completely. IIS seems to do this automatically but I haven't figured out how to get httpd see the current directory as a root directory and load other content. Any suggestions on how to fix this would be appreciated.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this helps others who have a similar situation. Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2020 23:01:52 GMT</pubDate>
    <dc:creator>MatthewLevey</dc:creator>
    <dc:date>2020-04-27T23:01:52Z</dc:date>
    <item>
      <title>How can we host a web server and ArcGIS Enterprise on same linux system?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-can-we-host-a-web-server-and-arcgis-enterprise/m-p/543177#M21024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are running ArcGIS Enterprise 10.7.1 on Red Hat Enterprise Linux. It is federated with both Server and Portal on the same system. Web Adaptor is configured and working and is required because we will need web-tier authentication. Because Web Adaptor only works with ports 80 and 443 we had to disable Apache (httpd) to avoid conflicts with Tomcat.&lt;BR /&gt;&lt;BR /&gt;How can we use one system to host our web apps and ArcGIS Enterprise?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 21:26:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-can-we-host-a-web-server-and-arcgis-enterprise/m-p/543177#M21024</guid>
      <dc:creator>MatthewLevey</dc:creator>
      <dc:date>2020-03-12T21:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can we host a web server and ArcGIS Enterprise on same linux system?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-can-we-host-a-web-server-and-arcgis-enterprise/m-p/543178#M21025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To answer my own question, this is how we resolved the problem of hosting web pages and running web adaptor on the same Linux machine, in our case Red Hat Enterprise Linux 7.6:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;OL style="color: #333333; background-color: #ffffff; font-size: 14px; margin: 10px 0px 0px;"&gt;&lt;LI&gt;It turns out that Tomcat can be configured as a reverse-proxy server using a servlet. I installed HTTPProxyServlet from http://www.servletsuite.com/servlets/httpproxy.htm and configured it to forward requests with '/apps' in the URL to Apache httpd. There are other more up-to-date servlets out there but this one was simple to configure and use.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;The Servlet (described above) matches&amp;nbsp;a url path string (e.g. &lt;EM&gt;/apps&lt;/EM&gt;), deletes it and everything after it, and forwards it to the web-server (httpd aka Apache) at&amp;nbsp;&lt;EM&gt;http://yourserver.domain:port.&lt;/EM&gt;&amp;nbsp;Note it is not using SSL and in this case is listening to port 8080 (via a Virtual Host/Server). Port 8080 is blocked from external IP addresses for security.&lt;/LI&gt;&lt;LI&gt;A ReWriteRule was added to httpd's Directives file (/etc/httpd/conf/httpd.conf) that adds the removed paths&amp;nbsp;and whatever string was in the original url after them. So the final url looks like: '_/path1/path2/SomeStringHere' to follow the file system path to the web app content.&lt;/LI&gt;&lt;LI&gt;Removing and replacing strings is necessary because the proxy is not dynamic; it only forwards to one endpoint. This workflow makes the requests dynamic.&lt;/LI&gt;&lt;LI&gt;Currently it is necessary to have the trailing slash at the end of the string. If this '&lt;STRONG&gt;/&lt;/STRONG&gt;' is missing any relative paths in the web app will be broken and the app will not load completely. IIS seems to do this automatically but I haven't figured out how to get httpd see the current directory as a root directory and load other content. Any suggestions on how to fix this would be appreciated.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this helps others who have a similar situation. Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 23:01:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-can-we-host-a-web-server-and-arcgis-enterprise/m-p/543178#M21025</guid>
      <dc:creator>MatthewLevey</dc:creator>
      <dc:date>2020-04-27T23:01:52Z</dc:date>
    </item>
  </channel>
</rss>

