Create Authentication For a Webpage

Stewart

Guru
Joined
Sep 16, 2009
Messages
603
Reaction score
6
I know this is slightly off topic, but I've built a web page that controls all of the scripts that I've written to help maintain the stability of my systems. I'd like it's authentication to be linked to the authentication of FreePBX like HUDLite's hudadmin.php page. I can't seem to see how to create that link. I've seen how to create authentication using .htaccess, but I don't want to set up a new authentication group. Just an association of sorts. Any help would be appreciated.
 
If you are using PBX in a Flash you have to realize that do not use the FreePBX 'authentication' so your question should be worded as 'How do I use PBX in a flash authentication'.

In the case of PBX in a flash you HAVE to use the .htaccess files, but you'd just simple reference the group that PBX in a flash uses, what the group IS, I have no idea. But it's written directly into apache.conf, instead of being a .htacess file, with that said you could actually avoid all .htaccess files and just put the stuff you need into apache.conf, just look for the stuff pbx in a flash did (it's an include I think)

I know this is slightly off topic, but I've built a web page that controls all of the scripts that I've written to help maintain the stability of my systems. I'd like it's authentication to be linked to the authentication of FreePBX like HUDLite's hudadmin.php page. I can't seem to see how to create that link. I've seen how to create authentication using .htaccess, but I don't want to set up a new authentication group. Just an association of sorts. Any help would be appreciated.
 
Turns out .htaccess doesn't work with the default configuration since it is disabled. The directories are set forth in /etc/pbx/httpdconf/pbx.conf. Just copy and paste and make the changes for your directory.
 
Or, better yet, create your own .conf file in /etc/pbx/httpdconf. For example, here's a sample for ari.conf:


#Password protect ARI interface
<Directory /var/www/html/recordings>
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /usr/local/apache/passwd/wwwpasswd
Require valid-user
</Directory>


And here's one for reminders.conf:


#Password protect /var/www/html/reminders
<Directory /var/www/html/reminders>
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /usr/local/apache/passwd/wwwpasswd
Require user maint
</Directory>


Once you get it built, just restart Apache: service httpd restart
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top