You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by makuk66 <gi...@git.apache.org> on 2015/03/25 09:34:12 UTC

[GitHub] lucene-solr pull request: SOLR-7240 add redirect of / to /solr/

GitHub user makuk66 opened a pull request:

    https://github.com/apache/lucene-solr/pull/136

    SOLR-7240 add redirect of / to /solr/

    SOLR-7240 add redirect of / to /solr/, using the jetty rewrite module with a regex pattern
    
    With this patch, / (and only /) redirects to /solr/.
    
    Tested with `bin/solr -f` on OSX:
    
    ```
    $ printf "GET / HTTP/1.0\r\n\r\n" | nc localhost 8983
    HTTP/1.1 302 Found
    Location: http://127.0.0.1:8983/solr/
    Content-Length: 0
    
    $ printf "GET /solr/ HTTP/1.0\r\n\r\n" | nc localhost 8983 | grep '<title>'
      <title>Solr Admin</title>
    $ printf "GET /foo HTTP/1.0\r\n\r\n" | nc localhost 8983 | grep '<title>'
    <title>Error 404 Not Found</title>
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/makuk66/lucene-solr SOLR-7240-redirect-slash-to-solr-squashed

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucene-solr/pull/136.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #136
    
----
commit 7bab2d8ab38a8e27fe606e63eb7ae6f48181a492
Author: Martijn Koster <ma...@greenhills.co.uk>
Date:   2015-03-25T08:18:28Z

    SOLR-7240 add redirect of / to /solr/, using the jetty rewrite module with a regex pattern

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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