ARI - Directory other than recordings?

aaelghat

Member
Joined
Dec 4, 2007
Messages
40
Reaction score
0
Hi!

On my PIAF box, I'd like to set-up an alternate UI to ARI, with a slimmed down feature set, and also offer the traditional ARI UI.

I know how to make all the html changes, the thing I can't figure out is that when I copy the /var/www/html/recordings directory to /var/www/html/new_directory and then navigate to http://my.ip.address/new_direcory/index.php I get a 404 error (The requested URL /new_direcory/index.php was not found on this server.)

I'm sure I need to add some basic .htaccess rule. or something equivalent, but what is it that I'm missing?

Thanks in advance.
 
Hi

Anything you put in web root will not be covered under any htaccess permissions, and you are on your own with security.

Have a closer look at your httpd error logs, also check the files are running under asterisk ownership.

Also, is the spilling mistake intentional - new_direcory

Joe
 
Hi - thanks for responding. The spelling mistake was intentional, and I'm still struggling with this.

I duplicated the recordings directory in a new directory called "recordings2".

I verified that "asterisk" was the owner of the directory and files, and that the file rights matched those of the recordings directory. The new directory, similar to recordings, is off the /var/www/html/ directory.

When using a web browser to browse to http://myip/recordings2 I get a message on my browser that says:

Forbidden

You don't have permission to access /recordings2/ on this server.

Is there some other setting that I'm missing?

Thanks in advance.
 
You need to [carefully] edit the file /etc/pbx/httpdconf/pbx.conf and allow appropriate access to the directory you created. Take extreme caution when editing this file as incorrectly modifying it can open delicate parts of your system to the outside world.
 
Thanks for the reply. I had looked at that directory before, but I didn't think that was the key because I didn't see the recordings directory in that file, so I figured the permissions had to be granted somewhere else.

All the examples in the pbx.conf file are password protected. What would the entries look like for a new "recordings2" directory that was a copy of the recordings directory?

Thanks.
 
<Directory /var/www/html/recordings2>
AuthType Basic
AuthName "Restricted Area"
AuthUserFile location of authentication file
Require username username ... username
</Directory>

Change the stuff in italics to suit your needs.
 
Thanks, but I'm confused about the username part and location of authentication file.

This is basically a copy of ARI. So people will authenticate with their extension and voicemail password. So what would I put in for the "Require" line?

Sorry if I'm being dense - I'm still not sure why the recordings directory doesn't have an entry in pbx.conf.
 
ARI is a completely separate beast from the above security model. The configuration in the pbx.conf file is apache security (the web server), while ARI has it's own security model. I don't think you'll be able to utilize ARI in the manner in which you're referring to without some digging in the code.
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
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