{"id":84,"date":"2015-09-08T17:28:40","date_gmt":"2015-09-08T14:28:40","guid":{"rendered":"http:\/\/small-service.com\/?p=84"},"modified":"2018-07-27T12:27:03","modified_gmt":"2018-07-27T09:27:03","slug":"nagios3-as-website","status":"publish","type":"post","link":"https:\/\/small-service.com\/?p=84","title":{"rendered":"nagios3 as website"},"content":{"rendered":"<p>By default it&#8217;s alias: you-domain.com\/nagios3 and to do it as standalone site follow below instruction&#8230;<br \/>\n<!--more--><\/p>\n<ul>\n<li><code>a2disconf\u00a0nagios3<\/code><\/li>\n<li><code>ln -s\u00a0\/etc\/nagios3\/apache2.conf\u00a0\/etc\/apache2\/sites-enabled\/<em>your-domain.com.conf<\/em><\/code><\/li>\n<li>modify this file to look like:\n<pre>\r\n&lt;VirtualHost *:80&gt;\r\n        ServerAdmin webmaster@example.com\r\n        ServerName nagios.example.com\r\n\r\n        ScriptAlias \/cgi-bin\/nagios3 \/usr\/lib\/cgi-bin\/nagios3\/\r\n\r\n        Alias \/stylesheets \/etc\/nagios3\/stylesheets\/\r\n        Alias \/ \/usr\/share\/nagios3\/htdocs\/\r\n\r\n        DocumentRoot \/usr\/share\/nagios3\/htdocs\/\r\n\r\n        &lt;DirectoryMatch (\/usr\/share\/nagios3\/htdocs|\/usr\/lib\/cgi-bin\/nagios3|\/etc\/nagios3\/stylesheets)&gt;\r\n                Options FollowSymLinks\r\n\r\n                DirectoryIndex index.php index.html\r\n\r\n                AllowOverride AuthConfig\r\n                Order Allow,Deny\r\n                Allow From All\r\n\r\n                AuthName \"Nagios Access\"\r\n                AuthType Basic\r\n                AuthUserFile \/path\/to\/nagios3\/htpasswd.users\r\n                require valid-user\r\n        &lt;\/DirectoryMatch&gt;\r\n\r\n        &lt;Directory \/usr\/share\/nagios3\/htdocs&gt;\r\n                Options +ExecCGI\r\n        &lt;\/Directory&gt;\r\n\r\n        ErrorLog ${APACHE_LOG_DIR}\/nagios.example.com-error.log\r\n        LogLevel warn\r\n        CustomLog ${APACHE_LOG_DIR}\/nagios.example.com-access.log combined\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<\/li>\n<li>in file<code> \/etc\/nagios3\/cgi.cfg <\/code>change <code>url_html_path <\/code>from \/nagios3 to \/<\/li>\n<li><code>service apache2 restart<\/code><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>By default it&#8217;s alias: you-domain.com\/nagios3 and to do it as standalone site follow below instruction&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[45,43,44,46,42],"_links":{"self":[{"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts\/84"}],"collection":[{"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84"}],"version-history":[{"count":11,"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts\/84\/revisions"}],"predecessor-version":[{"id":311,"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts\/84\/revisions\/311"}],"wp:attachment":[{"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}