WebserverRewriteTest.js (919B)
1 /** 2 * Tests if the web server can handle rewrites 3 */ 4 Ext.define('PartKeeprSetup.WebserverRewriteTest', { 5 extend: 'PartKeeprSetup.AbstractTest', 6 url: 'webserver-test', 7 name: "PHP", 8 method: 'GET', 9 message: "Testing webserver rewrite capability", 10 onFailure: function (response) { 11 this.success = false; 12 this.resultMessage = "Web Server misconfiguration"; 13 this.errors = ['Web Server Configuration error. Please read our <a href="https://wiki.partkeepr.org/wiki/KB00005:Web_Server_Configuration" target="_blank">wiki about the proper web server configuration</a>', response.responseText]; 14 this.errors.push('Error 2: Tried to retrieve setup/webserver-test and it did not succeed.'); 15 16 if (this.callback) { 17 this.callback.appendTestResult(this); 18 } 19 20 if (this.success) { 21 this.fireEvent("complete", this); 22 } 23 } 24 });