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.

Error 404 virtual alias not working

The Agent can't connect to http://server/ocsinventory Error 404

----- apache.log ------

[Wed Sep 28 12:05:32.075742 2016] [core:info] [pid 16645] [client] AH00128: File does not exist: /var/www/html/ocsinventory

mod_perl ist active

[Wed Sep 28 11:55:35.144835 2016] [mpm_prefork:notice] [pid 16640] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t mod_perl/2.0.9dev Perl/v5.20.2 configured -
- resuming normal operations


------- ocs agent.log --------------

Starting OCS Inventory NG Agent on Wednesday, September 28, 2016 12:25:23.
AGENT => Running OCS Inventory NG Agent Version
AGENT => Using OCS Inventory NG FrameWork Version
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
    DLL PLUGIN => 0 DLL Plug-in(s) successfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <XXXX2014-06-30-11-27-34> and MACs <XXXXXXXXXXX> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending HTTP Post request to URL <http://inventar/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.


I tried everything. Need help please.

Thank oyu
in OCS Inventory NG server for Unix by (200 points)

1 Answer

+1 vote
Best answer


looks like my problem with my new installation this week with a debian system. Compare both directories:

ls -l /etc/apache2/conf-enabled
ls -l /etc/apache2/conf-availible

My solution was to set the missing symlink to /etc/apache2/conf-available/z-ocsinventory-server.conf

cd /etc/apache2/conf-enabled && ln -s ../conf-available/z-ocsinventory-server.conf z-ocsinventory-server.conf
service apache2 restart
by (540 points)
selected by

WOW.... Thank You. i use your command and now all works!!!

Awesome yes

@OCS Team: Please confirm that as bug. it was a clean installation of OCS Server 2.2.1

Powered by Question2Answer