Select to view content in your preferred language

Self-hosting Enterprise Sites

824
7
08-25-2022 11:08 AM
JonathanDandois
Frequent Contributor

Is it possible to self-host an Enterprise Site?  I'm thinking of how I can use WAB Developer Edition to deploy a Web App in IIS at my own URL, and am wondering if I could do the same thing with Sites.

  • Currently our Site is at "https://<domain>/arcgisportal/apps/sites/#/infrastructure"
  • And it might be nice to have it instead at "https://<domain>/infrastructure"

I suppose I can set up a simple HTML redirect at "https://<domain>/infrastructure" that points to the main app at "https://<domain>/arcgisportal/apps/sites/#/infrastructure", which we are pretty used to. 

I tired noodling around with copying "ArcGIS\Portal\apps\sites" to a base URL at inetpub\wwwroot, but it looks like the check for the Portal Base URL is baked deep into the minified vendor code and can't be easily modified. 

Tags (1)
0 Kudos
7 Replies
NathanEnge
Esri Contributor
ExB Dev Edition does have some similar functionality as Enterprise Sites. Can much of your Sites be migrated to ExB. This would allow you to deploy on IIS
JonathanDandois
Frequent Contributor

@NathanEnge wrote:
ExB Dev Edition does have some similar functionality as Enterprise Sites. Can much of your Sites be migrated to ExB. This would allow you to deploy on IIS

Thanks! I have no clue! 

We are using Sites for a very basic landing page within our Portal to show targeted apps based on user Groups for Operations / Management. So most users are in Group A and can only see App A, about 25% of users are in Groups A&B and can see apps A&B, a small number of users are in Groups A, B, and C, and can see apps A, B, C.  That is what we are working to achieve with Sites - which is pretty much OOTB behavior from what I can tell. I have not started with ExB.

Is that something ExB does?

0 Kudos
Brian_Wilson
Honored Contributor

You copied files -- where exactly is it storing them by default?

I've poked around and found so much but never looked for Sites files before.

 

0 Kudos
JonathanDandois
Frequent Contributor

I copied the entirety of the /apps/sites directory from the primary Portal installation directory on the web server to a new location under inetpub/wwwroot, confirmed it was registered in IIS, and then tried launching up sites, either as the admin / designer / or a site app. but it gave a bunch of errors about not being able to locate the Portal instance.  Seems like that is hardcoded and not an intended use case. 

0 Kudos
Brian_Wilson
Honored Contributor

I think you are stuck with putting a proxy in front of it and handling all the rewriting, probably not worth the effort.

I think I found what you are looking at in C:\Program Files\ArcGIS\Portal\apps\sites.

I was trying to find actual content, but I am thinking it's actually building pages on the fly, so there is really nothing to copy.

 

0 Kudos
JonathanDandois
Frequent Contributor

Yup, i think so too! thanks.

0 Kudos
Brian_Wilson
Honored Contributor

1/2 of what I do seems to be an "unintended use case".