Support

Expand all | Collapse all

How to add a rewrite rule on Nginx in Jama 8.x bundle?

Jump to Best Answer
  • 1.  How to add a rewrite rule on Nginx in Jama 8.x bundle?

    Posted 12-29-2016 03:02
    Edited by Konstantin Kondratyev 12-29-2016 03:18

    Hello,

    We successfully updated jama from 2015.5 to 8.10
    But now we have a problem:
    Earlier we used context path /contour and rewrite rule on Nginx from server_name to server_name/contour
    We have many external links that point to jama and we have to use the same context path, but now we can't configure rewrite rule on Nginx and can't use url without context path.
    Please help us to solve this problem.


    ------------------------------
    Konstantin Kondratyev
    Wargaming.net - GameStream
    ------------------------------



  • 2.  RE: How to add a rewrite rule on Nginx in Jama 8.x bundle?
    Best Answer

    Posted 12-29-2016 10:24

    Hi Konstantin,

    Yes, you should be able to set the context path for your Jama instance via the Admin console.  This is covered in our Help Guide as step 9 of the Install Jama instructions.  You may need to run the Fix URL References operation after setting the context path to update any existing links within Jama itself

    However, that being said, you won't be able to implement custom rewrite rules in Nginx/Jama.  So, if for example, you didn't want to set a context path for all of Jama, and simply wanted a rewrite from yourjama.example.com/some_context/somePath to yourjama.example.com/somePath to translate external URLs without modifying Jama, that wouldn't be possible.

    Please let me know if you have any additional questions!

    ------------------------------
    Cheers,
    Nicholas Lawrence
    Jama Software