Permalink
Browse files

Ping install public/ folder to check if rewrite rule seems to work or…

… not - Close #1236
  • Loading branch information...
1 parent e8c76b4 commit 77d78b1d2ec6ffdce770c0a55c79cd8e4244d3b5 @cdujeu cdujeu committed Oct 7, 2016
Showing with 17 additions and 2 deletions.
  1. +17 −2 core/src/core/src/pydio/Tests/startup.phtml
@@ -160,10 +160,10 @@
</div>
<script type="text/javascript">
- var testRewrite = new Ajax.Request('data/cache/index.html', {
+ var testAllowOverride = new Ajax.Request('data/cache/index.html', {
method : 'get',
onComplete : function(response){
- if(200 == response.status){
+ if(200 === response.status){
var html = '<div class="testLine error">\
<div class="testName"><span>-</span>Security Breach</div>\
<div class="testStatus">error</div>\
@@ -175,6 +175,21 @@
}
});
+ var testRewrite = new Ajax.Request('public/', {
+ method : 'get',
+ onComplete : function(response){
+ if(404 === response.status){
+ var html = '<div class="testLine error">\
+ <div class="testName"><span>-</span>RewriteRule does not seem to work</div>\
+ <div class="testStatus">error</div>\
+ <div class="testDescription visible">Testing access to <b>public/</b> should give an empty link page but gives a 404, which seems to indicate that your server is not configure to support RewriteRules. If you are using <b>Apache</b>, make sure the ModRewrite is active. For other servers, check pydio install folder where you may find proper configuration files (web.config.sample, nginx.sample)</div>\
+ <div class="testClear"></div>\
+ </div>';
+ $$('div.testList')[0].insert({top:html});
+ }
+ }
+ });
+
$$('div.testName').invoke("observe", "click", function(event){
var target = event.target;
if(target.tagName.toLowerCase() == "span") target = target.up("div.testName");

0 comments on commit 77d78b1

Please sign in to comment.