Weblogic 12.2: AdminServer overwrite by restarting all your changes in the OHS mod_wl_ohs.conf file

For using Forms and Reports in Weblogic 12.2 with OHS server we changed Oracle HTTP Server Configuration in the $DOMAIN_HOME/config/fmwconfig/components/OHS/instances/ohs1/mod_wl_ohs.conf according the Oracle Documentation. But after the restarting of AdminServer the configuration file was always overwritten with default content and all our changes were gone.

By the starting of AdminServer we get following lines in the logs:

 NMProcess: Mär 24, 2017 7:51:15 AM oracle.ohs.plugin.nodemanager.OhsReplicationPlugin commit

 NMProcess: INFORMATION: Instanz ohs1 wird aktualisiert

We found, that the content of above mod_wl_ohs.conf file will be overwritten with the content of same named file from $DOMAIN_HOME/config/fmwconfig/components/OHS/ohs1 directory.

So for changes in the OHS configuration you need to edit only the file $DOMAIN_HOME/config/fmwconfig/components/OHS/ohs1/mod_wl_ohs.conf and copy it into the instance/ohs1 directory.