Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.8 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

OCS 2.3 - Which configuration file for ssl? [closed]


i'm using ubuntu 16.04 and try to use deployment. Outdated documentation told to create a new vhost for ssl in apache 2. In z-ocsinventory-server.conf I found following params, what is better to use? z-ocsinventory-server.conf or new vhost?

  #SSL apache settings

thanks for suggestions
closed with the note: Problem solved
in OCS Inventory NG server for Unix by (240 points)
closed by

1 Answer

0 votes


1) You must enable the z-ocsinventory-server.conf configuration after setting the following parameters :


2) For SSL, I personally use the file default-ssl.conf generated by ubuntu :

<IfModule mod_ssl.c>
        <VirtualHost _default_:443>
                Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
                ServerAdmin webmaster@localhost
                DocumentRoot /var/www/html
                <Directory /var/www/html>
                Options -Indexes
                ErrorLog ${APACHE_LOG_DIR}/error.log
                CustomLog ${APACHE_LOG_DIR}/access.log combined
                SSLEngine on
                SSLCertificateFile      /etc/path_cert_ocs/cacert.pem
                SSLCertificateKeyFile   /etc/path_cert_ocs/server.key

You can also make a virtual server if you host multiple servers on the same machine.


by (6.2k points)
Powered by Question2Answer