Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ananttickoo opened this issue Dec 19, 2019 · 0 comments
Open

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

ananttickoo opened this issue Dec 19, 2019 · 0 comments

Comments

@ananttickoo
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant