Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] api/.htacc...
 
Notifications
Clear all

[SOLVED] api/.htaccess gets overwritten during Projeqtor upgrade

3 Posts
2 Users
0 Reactions
3,135 Views
(@angeltek)
Posts: 20
Active Member
Topic starter
 
[#6194]

To prevent this I suggest that api/.htaccess be renamed api/.htaccess.example . Because this will leave the API in an insecure state, I also suggest that Projeqtor ships with $paramDisableAPI=true in its initial parameters.php file.

The reason for needing to ensure non-overwriting is that api/.htaccess currently specifies AuthUserFile as a relative path... ie relative to ServerRoot which is often set to /etc/httpd (at least on Fedora / Redhat & derivatives). So rather than forcing the use of /etc/httpd/.htpasswd (which is not a good choice on a multi-site server) it would be better for the administrator to be able to specify an absolute path of their choosing... which in turns means that changes to api/.htaccess should persist across upgrades.


 
Posted : 16 Aug 2019 20H32
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Request recorded as Ticket #4156


 
Posted : 19 Aug 2019 16H36
(@angeltek)
Posts: 20
Active Member
Topic starter
 

Many thanks.


 
Posted : 19 Aug 2019 16H38
Share:

Scroll to Top