Revision as of 18:00, November 24, 2014 by Alison.obrien (talk | contribs)
Deploying Web Services for GIR
GIR needs web servics for blah blah blah
The following steps describe how to deploy the Web Services component.
1. Install th
- Install WebDAV, 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 WebDAV 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 WebDAV server.
- Create the directory to keep the recording files, and set the permission to apache, using the following command:
mkdir /mnt/recordings chown apache:apache /mnt/recordings
- Create a WebDAV user for httpd, and configure the password. The following example creates a user called "user":
htpasswd -c /var/www/htpasswd user - Configure the httpd to start on boot up (and start it now) using the following command:
chkconfig --levels 235 httpd on service httpd start
- Test the WebDAV installation"
- Upload a hello.world file to the WebDAV server using the following command:
curl -T hello.world -u user:password http://myserver/recordings/hello.world
- Using a browser, open the the http://myserver/recordings/hello.world URL. The browser will request for user credentials.
- Upload a hello.world file to the WebDAV server using the following command:
- The WebDAV server is installed.
Comments or questions about this documentation? Contact us for support!
