Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API: Add web.config (url rewrite) for IIS #1443

Merged
merged 1 commit into from Jan 21, 2019

Conversation

obmsch
Copy link
Contributor

@obmsch obmsch commented Jan 10, 2019

To enable access to MantisBT through REST API under IIS, add an
.htaccess equivalent web.config for the url rewrite rule.
Otherwise 404 is returned on every request.
Generated with IIS-URL-Rewrite.Import(api/rest/.htaccess).

Fixes #24347

.htaccess equivalent web.config for the url rewrite rule.
Otherwise 404 is returned on every request.
Generated with IIS-URL-Rewrite.Import(api/rest/.htaccess).

Fixes #24347
Copy link
Member

@dregad dregad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't use IIS myself so I can't test this, but I think it's fair to add IIS config file since we already provide one for Apache, and I don't see anything wrong with the proposed one.

@atrol
Copy link
Member

atrol commented Jan 20, 2019

@obmsch I assume you are using this on your own production environment.
If so, I am also fine with the change.

@obmsch
Copy link
Contributor Author

obmsch commented Jan 20, 2019

@atrol Although access trough the REST API is still experimental on my side, yes I use my
production environment (IIS 10). I simply copy that file to api/rest, after I update to a new
release of MantisBT (currently 2.19).

@vboctor vboctor merged commit c7ca400 into mantisbt:master Jan 21, 2019
@obmsch obmsch deleted the issue-24347 branch January 21, 2019 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants