Excerpt |
---|
Describes howto setup a webserver for file exchange in a Bit Repository system. |
Apache HTTPD setup
Describes howto how to setup an Apache webserverWebServer, used for file exchange, in a Bit Repository BitRepository system.
Apache2
Install Apache2, mod_ssl and mod_dav if not pre-installed.
...
Code Block |
---|
$ /etc/init.d/apache2 restart # Finally restart apache or $ service httpd restart |
Testing
To One can verify that files can be uploaded to the dav directory , using curl can be used:
Code Block |
---|
curl -T <some_file_to_upload> <http://server/dav/> |
And over https One can verify that files can be uploading using HTTPS with client authentication (Note: it should only be possible to access the server over using HTTPS if a valid key/certificate pair is presented):
Code Block |
---|
curl --cacert <webserver.crt> --key <clientXX.key> --cert <clientXX.crt> -T <some_file_to_upload> <https://server/dav/> |
References:
Apache default directory layuout
Apache SSL/TLS Encryption
Apache Module mod_dav