I am unable to access check_mk web access on another machine

Here is my omd apache.conf
[root@dcims var]# vi /omd/sites/sandbox/etc/apache/apache.conf

###############################################################################

Apache configuration file for OMD site specific webserver daemon

This file is only used, if you have set WEBSERVER to ‘own’ (which

is the default). It is the configuration for a site-specific additional

Apache server process, which is just listening on 127.0.0.1 and is

called by the system-Apache via mod_proxy.

Advantages are: No root-permissions are needed for administrating this

Apache and priviledges are better separated. Also each OMD site has its

own Apache access and error logs below ~/var/log/apache.

###############################################################################

OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD ----------------------------

Better do not change anything in this block or you will have to

resolve conflicts in omd cp/mv/upate:

ServerRoot “/omd/sites/sandbox”
PidFile /omd/sites/sandbox/tmp/apache/run/apache.pid
DocumentRoot “/omd/sites/sandbox/var/www”

Include file where TCP port number is configured. That file

is automatically created and changed by ‘omd config’ if you

change APACHE_TCP_PORT.

Include /omd/sites/sandbox/etc/apache/listen-port.conf

User/Group to run the webserver with

User sandbox
Group sandbox

ServerName is set in listen-port.conf exactly to the Host:Port that the

site apache is listening on. This is also the Host:Port the reverse proxy

is working with.

The site apache (backend server) should always report back with this

Host:Port combination to the system apache (reverse proxy). This enables the

system apache, which is configured using proxy-port.conf, to translate the

URLs reported by the site apache into the public URLs of the reverse proxy.

UseCanonicalName On

---------------------------------------------------------------

Here you can configure and tune Apache

“/omd/sites/sandbox/etc/apache/apache.conf” 237L, 9164C

Here you can configure and tune Apache

ServerAdmin nobody@localhost

Timeout 120
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

DirectoryIndex index.html index.php index.html.var
AccessFileName .htaccess
ServerTokens OS
HostnameLookups Off
ServerSignature Off

Server-Pool Size Regulation

StartServers: number of server processes to start

MinSpareServers: minimum number of server processes which are kept spare

MaxSpareServers: maximum number of server processes which are kept spare

ServerLimit: Upper limit on configurable number of processes

(maximum value for MaxClients for the lifetime of the server)

MaxClients: Maximum number of connections that will be processed simultaneously

(maximum number of server processes allowed to start)

MaxRequestsPerChild: maximum number of requests a server process serves

StartServers 1
MinSpareServers 1
MaxSpareServers 5
ServerLimit 64
MaxClients 64
MaxRequestsPerChild 4000

###############################################################################

Load Modules

###############################################################################

Ugly IfModules! But they seem to be needed because some distributions have

modules compiled in. An example is the log_config module which is

Ugly IfModules! But they seem to be needed because some distributions have

modules compiled in. An example is the log_config module which is

compiled in on ubuntu/debian and a module on sles/centos.

Needs to be loaded first on some platforms to have the statement

available. On newer ones, the module is already available.

<IfModule !version_module>
LoadModule version_module /omd/sites/sandbox/lib/apache/modules/mod_version.so

Now load the specific modules needed for apache 2.4 and newer

= 2.4>
# SLES12 has apache 2.4 but the module does not need to be loaded
<IfModule !mpm_prefork_module>
LoadModule mpm_prefork_module /omd/sites/sandbox/lib/apache/modules/mod_mpm_prefork.so

LoadModule access_compat_module /omd/sites/sandbox/lib/apache/modules/mod_access_compat.so
LoadModule authn_core_module /omd/sites/sandbox/lib/apache/modules/mod_authn_core.so
LoadModule authz_core_module /omd/sites/sandbox/lib/apache/modules/mod_authz_core.so
LoadModule filter_module /omd/sites/sandbox/lib/apache/modules/mod_filter.so

<IfModule !mod_unixd.c>
    LoadModule unixd_module /omd/sites/sandbox/lib/apache/modules/mod_unixd.so
</IfModule>

And as alternative all modules needed for apache 2.2 old older

<IfVersion < 2.4>
LoadModule authn_default_module /omd/sites/sandbox/lib/apache/modules/mod_authn_default.so
LoadModule authz_default_module /omd/sites/sandbox/lib/apache/modules/mod_authz_default.so

Now load the modules needed for all versions

<IfModule !mod_log_config.c>
LoadModule log_config_module /omd/sites/sandbox/lib/apache/modules/mod_log_config.so

LoadModule auth_basic_module /omd/sites/sandbox/lib/apache/modules/mod_auth_basic.so
LoadModule authn_file_module /omd/sites/sandbox/lib/apache/modules/mod_authn_file.so
LoadModule authz_host_module /omd/sites/sandbox/lib/apache/modules/mod_authz_host.so
LoadModule authz_user_module /omd/sites/sandbox/lib/apache/modules/mod_authz_user.so
LoadModule autoindex_module /omd/sites/sandbox/lib/apache/modules/mod_autoindex.so

LoadModule headers_module /omd/sites/sandbox/lib/apache/modules/mod_headers.so
LoadModule setenvif_module /omd/sites/sandbox/lib/apache/modules/mod_setenvif.so
LoadModule mime_magic_module /omd/sites/sandbox/lib/apache/modules/mod_mime_magic.so
LoadModule mime_module /omd/sites/sandbox/lib/apache/modules/mod_mime.so
LoadModule negotiation_module /omd/sites/sandbox/lib/apache/modules/mod_negotiation.so
LoadModule dir_module /omd/sites/sandbox/lib/apache/modules/mod_dir.so
LoadModule alias_module /omd/sites/sandbox/lib/apache/modules/mod_alias.so
LoadModule rewrite_module /omd/sites/sandbox/lib/apache/modules/mod_rewrite.so
LoadModule cgi_module /omd/sites/sandbox/lib/apache/modules/mod_cgi.so
LoadModule status_module /omd/sites/sandbox/lib/apache/modules/mod_status.so

Options FollowSymLinks AllowOverride None

Configure mod_status (if available)

SetHandler server-status Order deny,allow Deny from all Allow from 172.22.2.80
# Keep track of extended status information for each request
ExtendedStatus On

The following lines prevent .htaccess and .htpasswd files from being

viewed by Web clients.

<Files ~ “^.ht”>
Order allow,deny
TypesConfig /etc/mime.types

<IfVersion < 2.4>
DefaultType text/plain

Loglevel and logfile configuration

LogLevel warn
LogFormat “%{X-Forwarded-For}i %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i”” combined

Language configuration

LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
ForceLanguagePriority Prefer Fallback

AddDefaultCharset UTF-8

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

AddHandler type-map var

PHP specific configuration

AddType text/html .php

The following directives modify normal HTTP response behavior to

handle known problems with browser implementations.

BrowserMatch “Mozilla/2” nokeepalive
BrowserMatch “MSIE 4.0b2;” nokeepalive downgrade-1.0 force-response-1.0

BrowserMatch “Mozilla/2” nokeepalive
BrowserMatch “MSIE 4.0b2;” nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch “RealPlayer 4.0” force-response-1.0
BrowserMatch “Java/1.0” force-response-1.0
BrowserMatch “JDK/1.0” force-response-1.0

The following directive disables redirects on non-GET requests for

a directory that does not include the trailing slash. This fixes a

problem with Microsoft WebFolders which does not appropriately handle

redirects for folders with DAV methods.

Same deal with Apple’s DAV filesystem and Gnome VFS support for DAV.

BrowserMatch “Microsoft Data Access Internet Publishing Provider” redirect-carefully
BrowserMatch “MS FrontPage” redirect-carefully
BrowserMatch “^WebDrive” redirect-carefully
BrowserMatch “^WebDAVFS/1.[0123]” redirect-carefully
BrowserMatch “^gnome-vfs/1.0” redirect-carefully
BrowserMatch “^XML Spy” redirect-carefully
BrowserMatch “^Dreamweaver-WebDAV-SCM1” redirect-carefully

OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD ----------------------------

Do not change anything below here

MIMEMagicFile /omd/sites/sandbox/etc/apache/magic
ErrorLog /omd/sites/sandbox/var/log/apache/error_log
CustomLog /omd/sites/sandbox/var/log/apache/access_log combined

fcgi settings must be site specific and cannot be used from shared apache

SharememPath “/omd/sites/sandbox/tmp/apache/fcgid_shm”
SocketPath “/omd/sites/sandbox/tmp/apache/fcgid_sock”

Load config files from the include dir. You can put your own

configuration there. Also addons put default files there.

Include /omd/sites/sandbox/etc/apache/conf.d/*.conf