php-snmptraps icon indicating copy to clipboard operation
php-snmptraps copied to clipboard

not able to configure php-snmptraps in non-root directory

Open ananttickoo opened this issue 5 years ago • 0 comments

Hi I have my rootdir as /data/snmp/, were snmp is soft link. I am able to open login page and then login. But after that links do not work. e.g

if i click on "setting" url changes to "http://xxx.xxx.225.196/snmp/settings/" and error displayed is

Not Found

The requested URL /data/snmp/index.php was not found on this server.

in my apache config i have

    Alias /snmp    /data/snmp
 <IfVersion >= 2.4>
        <FilesMatch "\.php$">
            SetHandler "proxy:fcgi://127.0.0.1:9000"
        </FilesMatch>
 </IfVersion>
    <Directory /data/snmp/>
            AllowOverride all
        <IFModule mod_rewrite.c>
        RewriteEngine on
        RewriteBase /snmp/
        RewriteCond %{REQUEST_FILENAME} -s [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
                Require all granted
    </Directory>

and BASE configured as

if(!defined('BASE'))
define('BASE', "/snmp/");

is there anything wrong with my config ?

ananttickoo avatar Dec 19 '19 18:12 ananttickoo