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.11.1 available

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

How to change default server URL

Hi, i need to put Zabbix server and OCS Inventory server in the same server. Its poossible to adjust server URL in the way of the following:

http://server-IP/zabbix for Zabbix Web Console

http://server-IP/ocsreports for OCS Inventory Server

Thanks for any starting point.
in OCS Inventory NG server for Unix by (120 points)

1 Answer

0 votes
When you install OCS Server with 'setup.sh', you'll get the files

- /etc/apache2/conf-available/ocsinventory-reports.conf

- /etc/apache2/conf-available/z-ocsinventory-server.conf

- /etc/apache2/conf-available/zz-ocsinventory-restapi.conf

(Mandatory : you have to set some variable DB_XXXX in z-ocsinventory-server.conf)

All url are defined in ocsinventory-reports.conf with Alias (and Directory).

So you could define in zabbix.conf the Alias for /zabbix (in another file !).

I recommend to learn how to setup Apache using Alias, Directory, Location, VirtualHost, understand Certificate for https, ProxyPass, DocumentRoot, ... you need this not only for OCS ...
Please consider Apache Quick Start, and note OS difference :

- debian like : folder conf-available/conf-enable + a2enconf/a2disconf, same for sites and mod

 - centos, redhat like : httpd and not apache2, no a2enxxxx a2disxxxx
by (17.9k points)
edited by
Powered by Question2Answer