Cron task details
Brought to you by:
cispeo
Hi, thank you for this plugin, it's really good.
I need precision about the cron task.
Don't you need to use wget --post-data directive to send the login (and probably the --keep-session-cookies) ?
also the url syntax http://management:aggregate@127.0.0.1 means http://user:password@127.0.0.1 so do i need to implement an htpasswd user and change management / aggregate with those values ?
Thanks for giving me this precision,
regards,
Anonymous
Hi,
The wget doesn't actually need --post-data because the script is white listed from the list of IP addresses defined as admin IPs. So there is no authentication anymore, and there is no need for an .htaccess either (one could be added for additional protection). The aggregate.php script runs once when called through wget so there is no need for --keep-session-cookies.
Hope that helps,
Robin
Hi,
it makes more senses.
If it's ip checked, then why http://management:aggregate@127.0.0.1/nfsight/aggregate.php and not http://127.0.0.1/nfsight/aggregate.php ?
Thanks again for this precision,
Right, the username and password can be removed. This will be clarified in the next release.
thanks again, all clear now. Yes the precision of the ip is important since you can put apache listening on a really specific ip (NameVirtualHost) and since the server who launches the wget could be on a totally sub network as well. Anyway thanks a lot.