Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Following config for /etc/apache2/sites-available/gnocchi.conf works fine at this moment:

Listen 8041

<virtualhost *:8041=""> WSGIDaemonProcess gnocchi lang='en_US.UTF-8' locale='en_US.UTF-8' user=stack display-name=%{GROUP} processes=2 threads=32 WSGIProcessGroup gnocchi WSGIScriptAlias / /usr/local/bin/gnocchi-api WSGIApplicationGroup %{GLOBAL}

<IfVersion >= 2.4>
    ErrorLogFormat "%{cu}t %M"
</IfVersion>


<Directory />
    Options FollowSymLinks
    AllowOverride None
    <IfVersion >= 2.4>
        Require all granted
    </IfVersion>
    <IfVersion < 2.4>
        Order allow,deny
        Allow from all
    </IfVersion>
</Directory>

ErrorLog /var/log/apache2/gnocchi.log
CustomLog /var/log/apache2/gnocchi-access.log combined

</virtualhost>

WSGISocketPrefix /var/run/apache2

After service apache2 restart output for command gnocchi status is following:

$ gnocchi status +-----------------------------------------------------+-------+ | Field | Value | +-----------------------------------------------------+-------+ | storage/number of metric having measures to process | 0 | | storage/total number of measures to process | 0 | +-----------------------------------------------------+-------+

Not like before:

$ gnocchi status <html><head> <title>403 Forbidden</title> </head><body>

Forbidden

You don't have permission to access /v1/status on this server.


Apache/2.4.18 (Ubuntu) Server at 10.92.76.44 Port 8041
</body></html> (HTTP 403)