{"id":93,"date":"2012-08-06T12:07:00","date_gmt":"2012-08-06T12:07:00","guid":{"rendered":"https:\/\/linuxadmin.melberi.com\/uncategorized\/test-failed-webserver-is-permitting"},"modified":"2017-10-12T11:49:53","modified_gmt":"2017-10-12T11:49:53","slug":"test-failed-webserver-permitting","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/linuxadmin\/bugzilla\/test-failed-webserver-permitting","title":{"rendered":"TEST-FAILED Webserver is permitting fetch of localconfig"},"content":{"rendered":"<p>While running the testserver.pl in bugzilla root folder, following error message occurred.\u00a0 &#8220;TEST-FAILED Webserver is permitting fetch of localconfig&#8221;<\/p>\n<h3><b><u>Error Message: <\/u><\/b><\/h3>\n<p><b>\u00a0#.\/testserver.pl <\/b><b style=\"background-color: white;\">http:\/\/bugzillaserver<\/b><br \/>\nTEST-OK Webserver is running under group id in $webservergroup.<br style=\"background-color: #cccccc;\" \/>TEST-OK Got padlock picture.<br style=\"background-color: #cccccc;\" \/>TEST-OK Webserver is executing CGIs via mod_cgi.<br style=\"background-color: #cccccc;\" \/><b>TEST-FAILED Webserver is permitting fetch of http:\/\/bugzillaserver\/localconfig.<\/b><\/p>\n<h3><b><u>Solution:<\/u><\/b><\/h3>\n<p>Add the following lines inside &lt;\/VirtualHost&gt; in your Apache Web Server config file(httpd.conf)<\/p>\n<p>&lt;FilesMatch ^(.*.pm|.*.pl|.*localconfig.*)$&gt;<br style=\"background-color: #cccccc;\" \/>\u00a0 deny from all<br style=\"background-color: #cccccc;\" \/>&lt;\/FilesMatch&gt;<\/p>\n<h3><u><b>Sample Bugzilla Apache Config:<\/b><\/u><\/h3>\n<pre> &lt;VirtualHost server_ip:*&gt;\r\n DocumentRoot \/var\/www\/html\/bugzilla\r\n ServerName bug.bugzilla.com\r\n RewriteEngine on\r\n RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)\r\n RewriteRule .* - [F]\r\n IndexOptions SuppressColumnSorting SuppressDescription SuppressHTMLPreamble SuppressLastModified SuppressSize SuppressIcon SuppressRules\r\n Options +ExecCGI\r\n &lt;Directory \"\/var\/www\/html\/bugzilla\"&gt;\r\n AddHandler cgi-script .cgi\r\n Options -Indexes +ExecCGI\r\n DirectoryIndex index.cgi\r\n AllowOverride Limit\r\n &lt;\/Directory&gt;\r\n <b style=\"background-color: #eeeeee;\">&lt;FilesMatch ^(.*.pm|.*.pl|.*localconfig.*)$&gt;\r\n deny from all\r\n &lt;\/FilesMatch&gt;\r\n &lt;IfModule mod_expires.c&gt;\r\n &lt;IfModule mod_headers.c&gt;\r\n &lt;IfModule mod_env.c&gt;\r\n &lt;FilesMatch (.js|.css)$&gt;\r\n ExpiresActive On\r\n ExpiresDefault \"now plus 1 years\"\r\n Header append Cache-Control \"public\"\r\n &lt;\/FilesMatch&gt;\r\n SetEnv BZ_CACHE_CONTROL 1\r\n &lt;\/IfModule&gt;\r\n &lt;\/IfModule&gt;\r\n &lt;\/IfModule&gt;<\/b>\r\n &lt;\/VirtualHost&gt;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While running the testserver.pl in bugzilla root folder, following error message occurred.\u00a0 &#8220;TEST-FAILED Webserver is permitting fetch of localconfig&#8221; Error Message: \u00a0#.\/testserver.pl http:\/\/bugzillaserver TEST-OK Webserver is running under group id&#8230; <a href=\"https:\/\/www.melberi.com\/linuxadmin\/bugzilla\/test-failed-webserver-permitting\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/93"}],"collection":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":4,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":717,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/93\/revisions\/717"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}