We have Ubuntu 12.04 and OCSInventory 2.1 installed. Tried to update Ubuntu to Ubuntu 14/16 and just after the update OCS Inventory doesn't work anymore (You don't have permissions to access /ocsreports on this server).
After a few tests observed that if I'll copy the Alias and directories from /etc/apache2/conf.d/ocsinventory-reports.conf (ex. alias for /ocsreports /usr/share/ocsinventory-reports/ocsreports) to /etc/apache2/sites-available/default-ssl.conf (we use OCS under HTTPS) , OCS Inventory page loads, however the computer agents doesn't send the data/can't connect to the server. Tried to check here for some solutions, but couldn't find any. Might be something related to apache2 and conf.d (as mentioned above after moving the aliases and directories config from conf.d to sites-available, the ocs server page opens at least).
Any ideas? Any tutorial to upgrade from Ubuntu 12 to Ubuntu 14/16 with keeping the current OCS Inventory 2.1 or updating it to any newer version?
Thank you in advance