Running TaskBoard on IIS
See original GitHub issueI downloaded taskboard 1.0.2 zip and placed the contents in a subdirectory in my wwwroot served by IIS. I enabled readwrite permissions for the /api subdirectory. Navigated to https://server/tasks and the login page renders. At this point in the browser dev console i can see a POST https://server/tasks/api/login 404
which is probably ok and the login dialog is displayed. So up to here php is working assets are served and the javascript seems ok because it tried to auth and failed forcing me to the login prompt.
To Reproduce at the login page use the default user and pass (admin, admin) and hit the login button, does not login, dev console shows exception trace:
core.js:4197 ERROR TypeError: Cannot read property 'forEach' of undefined
at n._next (login.component.ts:51)
at n.value (Subscriber.js:183)
at n.value (Subscriber.js:122)
at n.value (Subscriber.js:72)
at n.value (Subscriber.js:49)
at n.Zone.__load_patch.e.Subscriber.next (zone-patch-rxjs.js:163)
at n.value (innerSubscribe.js:42)
at n.value (innerSubscribe.js:10)
at n.value (Subscriber.js:49)
at n.Zone.__load_patch.e.Subscriber.next (zone-patch-rxjs.js:163)
Expected behavior Taskboard works as it would on apache/linux
Please complete the following information:
- OS: Server windows server 2016 (effectively windows 10 1607), IIS with php and urlrewrite installed and working (running pmwiki in another subdirectory)
- Browser, Edge chromium version, latest
Additional context Note that htaccess does not work under IIS. Url rewrite is installed and that functions in a similar way but the htaccess files provided contain expressions that the importer doesn’t understand.
Can this work? and if so what needs changing?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
Ok, couldn’t find a way to save it as text so screenshot.
the zone call response body is “{ message: “Matching API call not found.” }” which seems to indicate that it’s the api subdir rules.
the IIS Setup Procedure from the Wiki tries to import Rules from HTACCESS that are not supported. I just ignored the rewrite for that and it works. The other discrepancy is, that the file to rewrite to in the API folder is named index.php, not api.php. Last, you should pay attention to the rewrite path. I work with subdomains like Taskboard.localhost so the rewrite path has to be shortend accordingly (/api/index.php)