Contents
WebDAV Requirements
Interaction Recording Web Services relies on a Web Distributed Authoring and Versioning (WebDAV) server to store and manage the GIR recording files. WebDAV is an extension of the Hypertext Transfer Protocol (HTTP) that facilitates collaboration between users in editing and managing documents and files stored on World Wide Web servers. A working group of the Internet Engineering Task Force (IETF) defined WebDAV in RFC 4918.
The following information represents examples of what can be done for WebDAV. Follow these procedures to get a better understanding of what needs to be done when you use a Red Hat Enterprise Linux machine with the Apache HTTP Server.
Deploying the WebDAV Server
- Install Apache HTTP Server and run the following command:
yum install httpd
- Edit the /etc/httpd/conf/httpd.conf file, and append the following to the end of the file:
Alias /recordings /mnt/recordings <Directory /mnt/recordings> Options Indexes MultiViews FollowSymLinks EnableSendfile off AllowOverride None Order allow,deny allow from all </Directory> <Location "/recordings"> DAV On AuthType Basic AuthName "user" AuthUserFile /var/www/htpasswd Require valid-user </Location>
- Open the firewall.
Because Apache HTTP Server is an HTTP server, the incoming default HTTP and/or HTTPS ports (80 and/or 443) must be open to the server.ImportantIt is possible to use custom ports by changing the permitted incoming ports in the firewall, the virtual host configuration file, and the URL used to reach the Apache HTTP server. - Create the directory to keep the recording files, and set the permission to apache, using the following commands:
mkdir /mnt/recordings chown apache:apache /mnt/recordings
- Create an Apache HTTP Server user for httpd, and configure the password. The following example creates a user called "user":
htpasswd -cm /var/www/htpasswd user
WarningIf the Recording Muxer is deployed for screen recording, make sure all WebDAV storages of the same contact center region are using the same username and password. - Configure the httpd to start on boot up (and start it now) using the following commands:
chkconfig --levels 235 httpd on service httpd start
- Test the Apache HTTP Server installation:
- Upload a hello.world file to the Apache HTTP Server using the following command:
curl -T hello.world -u user:password http://myserver/recordings/hello.world
- Using a browser, open the http://myserver/recordings/hello.world URL. The browser will request for user credentials.
- Upload a hello.world file to the Apache HTTP Server using the following command:
- The Apache HTTP Server is installed.
setsebool -P httpd_use_cifs 1 chcon -R -t httpd_sys_script_rw_t <storage directory>
Configuring TLS for the WebDAV Server
To configure TLS for the Apache HTTP Server on RHEL6:
- On the WebDAV server, run the following command to install SSL:
yum install mod_ssl
The certificate/key pair is automatically generated:
- Certificate: /etc/pki/tls/certs/localhost.crt
- Key: /etc/pki/tls/private/localhost.key
- To use your own certificate/key pair, either update the files automatically generated (as above), or edit the /etc/httpd/conf.d/ssl.conf file and modify the following lines:
- SSLCertificateFile /etc/pki/tls/certs/localhost.crt
- SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
- Restart httpd by running the following command:
service httpd restart
TLS is enabled on the default HTTPS port 443.
