Thomas Trepper
2014-05-28 06:58:44 UTC
Hi all,
I am using monitorix 3.5.1 and Apache 2 and I would like to use Apache to serve the content. I have created the following vHost:
<VirtualHost
Alias /monitorix /var/lib/monitorix/www
ScriptAlias /monitorix-cgi /var/lib/monitorix/www/cgi
<Directory /var/lib/monitorix/www/cgi/>
DirectoryIndex monitorix.cgi
Options ExecCGI
order deny,allow
#deny from all
allow from all
<IfModule mod_authz_core.c>
# Apache 2.4
Require all denied
Require host 127.0.0.1
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Deny from all
Allow from 127.0.01
</IfModule>
</Directory>
<Directory /var/lib/monitorix/www>
#Options +Indexes
Options Indexes Includes FollowSymLinks
</Directory>
../VirtualHost>
and when I try to access I get the following error:
[notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u9 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Wed May 28 08:55:50 2014] [error] [client 192.168.19.223] malformed header from script. Bad header=<!DOCTYPE HTML PUBLIC '-//W3C/: monitorix.cgi, referer: https://192.168.19.85/monitorix/
Does maybe somebody has an idea what I am doing wrong or can maybe point me to the right direction?
Thanks a lot in advance.
Thomas
I am using monitorix 3.5.1 and Apache 2 and I would like to use Apache to serve the content. I have created the following vHost:
<VirtualHost
Alias /monitorix /var/lib/monitorix/www
ScriptAlias /monitorix-cgi /var/lib/monitorix/www/cgi
<Directory /var/lib/monitorix/www/cgi/>
DirectoryIndex monitorix.cgi
Options ExecCGI
order deny,allow
#deny from all
allow from all
<IfModule mod_authz_core.c>
# Apache 2.4
Require all denied
Require host 127.0.0.1
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Deny from all
Allow from 127.0.01
</IfModule>
</Directory>
<Directory /var/lib/monitorix/www>
#Options +Indexes
Options Indexes Includes FollowSymLinks
</Directory>
../VirtualHost>
and when I try to access I get the following error:
[notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u9 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Wed May 28 08:55:50 2014] [error] [client 192.168.19.223] malformed header from script. Bad header=<!DOCTYPE HTML PUBLIC '-//W3C/: monitorix.cgi, referer: https://192.168.19.85/monitorix/
Does maybe somebody has an idea what I am doing wrong or can maybe point me to the right direction?
Thanks a lot in advance.
Thomas