Jump to content

Can the admin directory be secured with http auth?


trine

Recommended Posts

Simple question ... but only the developer would know for sure...

 

Can the admin directory be secured with http auth? Or, would that stop certain scripts from working properly?

 

(Assuming we execute all crons with php, not wget or get).

Link to comment
Share on other sites

One says yes, the other no ...

 

hehehe ... this is exactly why I said ... and I quote " but only the developer would know for sure"

 

It has more to do than just cron... the cron itself will execute when using the php directive, but it's really for the rest that I wonder if it will break things.

Link to comment
Share on other sites

Simple question ... but only the developer would know for sure...

 

Can the admin directory be secured with http auth? Or, would that stop certain scripts from working properly?

 

(Assuming we execute all crons with php, not wget or get).

I did this some time ago. CRON did stop.
Link to comment
Share on other sites

roger were you using get or wget in your cron or php? if you use php, you should be able to also assign the user if using phpsuexec or nobody if not. Also, your htaccess should allow all requests from the server, and possibly the user or uid.

 

Now, apparently most of this is working for us, but can't yet be sure. So, but am still curious:

 

1. if it will break any functionality

2. if the admin directory can be renamed to something else.

 

In regards to #2, it seems not to use relative paths based on dirname(__FILE__) or similar.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated