015-0019 Bug In Ctraker .htaccess File »  Show posts from    to     

Icy Phoenix


Old Bugs - 015-0019 Bug In Ctraker .htaccess File



novice programmer [ Tue 09 Oct, 2007 16:51 ]
Post 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: [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

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

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


So it results in:

Code: [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.


novice programmer [ Tue 09 Oct, 2007 16:52 ]
Post subject: Re: Bug In Ctraker .htaccess File
In that file the text is:

Code: [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: [Hide]
  1. Order Allow, Deny 


and it´s rutine is:

First, disallow all
Then, allow localhost

So, it has to be (too):

Code: [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.


novice programmer [ Tue 16 Oct, 2007 16:37 ]
Post 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.


Mighty Gorgon [ Tue 23 Oct, 2007 23:06 ]
Post subject: Re: 015-0019 Bug In Ctraker .htaccess File
I have totally recoded this for next version... so htaccess should work fine.

Thanks.




Powered by Icy Phoenix