015-0019 Bug In Ctraker .htaccess File


Subject: 015-0019 Bug In Ctraker .htaccess File
This bug is also in the beta!!

Problem description:

When you get to the ctraker logs in ACP, you get a high number of logs entries, but when get to file it appears a white page. If you try to get with the browser to that file, you will find a non-authorizated error message.




SOLUTION:


The debug mode of Ctraker isn´t allowed to get to the log file when needed because:

  • Htaccess doesn´t allow that


This is caused because:

in /ctracker/logfiles/.htaccess the text is:

Code: [Download] [Hide] [Select]
<Limit GET POST PUT>
Order Allow,Deny
Deny from All
Allow from localhost 127.0.0.1
</Limit>


So the server thinks the url allowed is "http://localhost%20127.0.0.1" and rest are :censored:

This is solved by setting a ',' in this line:

Code: [Download] [Hide] [Select]
Allow from localhost 127.0.0.1


So it results in:

Code: [Download] [Hide]
  1. Allow from localhost, 127.0.0.1 


So it will allow the adresses "localhost" and "127.0.0.1"

Unless you do this, the log will show a lot of entries on the ACP and when get to the file, it won´t show anything, `cause there is nothing written on it.

Last edited by novice programmer on Tue 16 Oct, 2007 16:35; edited 2 times in total
Profile PM  
Subject: Re: Bug In Ctraker .htaccess File
In that file the text is:

Code: [Download] [Hide] [Select]
<Limit GET POST PUT>
Order Allow,Deny
Deny from All
Allow from localhost, 127.0.0.1
</Limit>


And the file set the secuence:

Code: [Download] [Hide]
  1. Order Allow, Deny 


and it´s rutine is:

First, disallow all
Then, allow localhost

So, it has to be (too):

Code: [Download] [Hide] [Select]
<Limit GET POST PUT>
Order Deny, Allow
Deny from All
Allow from localhost, 127.0.0.1
</Limit>


So you will set the first orders are going to set a deny condition and the second ones are going to set an allow condition.

Profile PM  
Subject: Re: 015-0019 Bug In Ctraker .htaccess File
Topic locked as bug solution explained.

Topic moved to bugs section and changed topic title properly.

Profile PM  
Subject: Re: 015-0019 Bug In Ctraker .htaccess File
I have totally recoded this for next version... so htaccess should work fine.

Thanks. :mricy:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1524s (PHP: 11% SQL: 89%)
SQL queries: 13 - Debug Off - GZIP Enabled