Access to host 127.0.0.1 is not authorized. with CGI

Discussion in 'Server Operation' started by muekno, Mar 20, 2025.

  1. muekno

    muekno Active Member HowtoForge Supporter

    Did long time research, everthimg seams ok but does not work,
    conf files in sites-availabel
    <code>
    <VirtualHost *:80>
    ServerName usv-pve-rh.muekno.de
    Redirect / https://172.16.1.70/
    </VirtualHost>
    </code>
    <code>
    <VirtualHost *:443>
    ServerName usv-pve-rh.muekno.de
    DocumentRoot /var/www/html

    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/usv-pve-rh.muekno.de.pem
    SSLCertificateKeyFile /etc/apache2/ssl/usv-pve-rh.muekno.de.key

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI
    AddHandler cgi-script .cgi
    Require all granted
    </Directory>
    </VirtualHost>
    </code>
    index.html
    <code>
    <!DOCTYPE html>
    <html>
    <head>
    <title>Proxmox-USV</title>
    </head>
    <body>
    <h3>USV Status</h3> <br>
    <a href="/cgi-bin/apcupsd/multimon.cgi">
    apcupsd MultiMon
    </a><br>
    <a href="/cgi-bin/apcupsd/upsstats.cgi">
    apcupsd Stats
    </a><br>
    <a href="/cgi-bin/apcupsd/upsfstats.cgi">
    apcupsd fStats
    </a><br><br><br>
    <h3>Proxmox Webinterface</h3><br>
    <a href="https://172.16.1.70:8006"> <!-- hier IP-Adresse anpassen! -->
    Proxmox Webinterface
    </a>
    </body>
    </html>
    </code>
    Every time I click an URL with cgi I got the Error from the subject.
    I out of any ideas
    Appreciate any help
     

Share This Page