Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Ping install public/ folder to check if rewrite rule seems to work or…
Browse files Browse the repository at this point in the history
… not - Close #1236
  • Loading branch information
cdujeu committed Oct 7, 2016
1 parent e8c76b4 commit 77d78b1
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions core/src/core/src/pydio/Tests/startup.phtml
Expand Up @@ -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>\
Expand All @@ -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");
Expand Down

0 comments on commit 77d78b1

Please sign in to comment.