[ 
https://issues.apache.org/jira/browse/SOLR-9000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15445753#comment-15445753
 ] 

Alexandre Rafalovitch commented on SOLR-9000:
---------------------------------------------

I think the main use-case I can think of is having multiple Solr instances 
behind a proxy on different path. E.g. /solr62, /solr61. Being able to have 
each one accessible with its own Admin UI would be easy if the new UI support 
the path like the old UI does. But if it does not, it is nearly impossible (URL 
rewriting by proxy is messy).

An alternative, is to put each instance on its own port, but that could have 
issues with not all ports being open.

But the main issue is whether this is a regression. If we treat it as one, it 
should probably be fixed (I can look into what that takes). If we treat it as 
non-regression, the reasons to implement it are limited. 

> New Admin UI hardcodes /solr context and fails when it changes
> --------------------------------------------------------------
>
>                 Key: SOLR-9000
>                 URL: https://issues.apache.org/jira/browse/SOLR-9000
>             Project: Solr
>          Issue Type: Bug
>          Components: UI
>    Affects Versions: 6.0
>            Reporter: Alexandre Rafalovitch
>            Assignee: Alexandre Rafalovitch
>         Attachments: solr-wrong-urls-screenshot.png
>
>
> If the solr context is changed from */solr* to any other value (e.g. 
> */solr6_0/instance/solr1*), the new Admin UI does not work as it still tries 
> to load resources from */solr* prefix:
> The context is changed by editing server/contexts/solr-jetty-context.xml:
>  bq. <Set name="contextPath"><Property name="hostContext" 
> default="/solr6_0/instance/solr1"/></Set>
> and by changing redirect in the server/etc/jetty.xml
> {quote}
>     <New class="org.eclipse.jetty.rewrite.handler.RedirectRegexRule">
>       <Set name="regex">^/$</Set>
>       <Set name="replacement">/solr6_0/instance/solr1/</Set>
>      </New>
> {quote}
> This affects New Admin UI, as well as both links between the UIs.
> The old Admin UI seems to work with the changed context, once it is manually 
> loaded.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to