Re: 404 issue1 not found
Martin Thomas Swaton <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks John! the hint with the trailing / was exactly what I needed. the old version and implimentation with mod_python needed: # roundup requires a slash after tracker name - add it if missing #RedirectMatch permanent ^/([^/]+)$ /$1/ and also had no problems with the trailing slash that is added by the browser automatically, when there is no filename at the end of the url. e.g. issue1 gets a slash by the browser, issue.1 won't. So I added: RedirectMatch permanent ^/(.*)/$ /$1 and everything is working. Maybe someone could add the information about the trailing / to the documentation how to set up roundup with wsgi. By the way, how would I set the language for the webinterface with mod_wsgi? With mod_python I could set that in the vhost.conf as python option. Where would I do that now with mod_wsgi? Thanks for your great and quick response, Martin Am 18.09.2016 um 04:11 schrieb John P. Rouillard: > Hello Martin: > > MepIn message <[email protected]>, > Martin Thomas Swaton writes: >> Then I found out, that there is no mod_python available for centos7 >> anymore and I have to use the mod_wsgi. >> I have the following config: >> >> in the vhost conf: >> >> WSGIScriptAlias / /opt/roundup/trackers/support/apache/roundup.wsgi >> >> where the roundup.wsgi is: >> >> from roundup.cgi.wsgi_handler import RequestDispatcher >> tracker_home = "/opt/roundup/trackers/support" >> application = RequestDispatcher(tracker_home) >> >> I can open the Startpage without any problems, can login as admin and >> see my first issue, that I have submitted via email / imap. >> >> But when I open the url from the mail (or directly on the webpage) from >> the first issue I get an 404 not found error. >> >> https://website.tld/issue1/ >> 404 > 404 is the right response. > > The correct url is https://website.tld/issue1 (note: no trailing /). > > Does the url generated in the web inteface or in the email include the > trailing /? > > If not, is there some mod_rewrite rule in apache or something that > could be adding the trailing /? > >> I tried to add the "old" aliases in the apache conf for static and other >> content and also tried without them. > I am not sure what you mean by this. > > -- > -- rouilj > John Rouillard > =========================================================================== > My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------------------------------