Before deploiement, you NEED to correctly configure OCS server and specialy Apache2.
First, you need to chose if agents will be connected with OCS server using HTTP or HTTPS. If you choose HTTPS, that's mean SSL=1, you need to supply the certificate, usually 'cacert.pem', to agents for installation. There is NO settings about deploiement inside agent's configuration !
Secondly, for deploiement, it's mandatory to have HTTP AND HTTPS (read documentation) due 'info file' is loaded using HTTPS, and 'fragment files' are loaded using HTTP.
I suggest you follow documentation ...