-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
404 Error on GET /api/config
#124
Comments
Try with
instead of
|
Hello sir ! I tried it but always the same, i restart httpd and nfsen-ng to make sure but same. with your change my httpd_conf was this : <VirtualHost *:80>
I tried a lot of things but i don't know why it is so complicated, people had no a lot of problem Thank you for your help |
what does it say if you create a file phpinfo.php with content |
Well this is weird. The |
Hello ! For the backend i have create a service(i always restart everything to run) : cat /etc/systemd/system/nfsen-ng.service
Here is my module rewrite : So i test for the rewrite, it works with that configuration it redirect me to google:
|
hmm does the test rewrite also work in the .htaccess in the nfsen-ng folder? |
can you remove |
you still need to have |
yes but it needs to |
Ok the error change : with that configuration as you said:
So the redirect to google "works" because he tries to expose /api/config to www.google.com |
yes, nice. what happens now if you remove the redirect to google? |
Hello! |
Issue: 404 Error on
GET /api/config
Hello guys !
Description
I am encountering a
404 Not Found
error when attempting to access/api/config
on the frontend of the nfsen-ng web interface. The backend is functioning correctly, and I can successfully parse files, generatenfcapd
files daily, and create RRD files without any issues. However, the frontend fails to retrieve the configuration from the/api/config
endpoint.Environment and Setup
OS and Web Server
nfsen-ng Setup
/data/nfsen-ng/
/data/nfsen-ng/frontend/
/data/nfsen-ng/backend/
/data/nfsen-ng/backend/datasources/data
/data/nfsen-ng/profiles-data/
Current Configuration
Apache Configuration (
httpd.conf
)nfsen-ng Settings (settings.php):
Apache Modules - The following modules are enabled:
rewrite_module (shared)
deflate_module (shared)
expires_module (shared)
php_module (shared)
My nfcapd command:
/usr/local/bin/nfcapd -vv -D -p 9995 -B 20971520 -S 1 -P /data/nfsen-ng/var/run/p9995.pid -z=lz4 -t 300 -I PFC_CHA -w /data/nfsen-ng/profiles-data/live/PFC_CHA -T all
Frontend Error:
On the web interface, the /api/config endpoint returns a 404 Not Found.
The following error is observed in the browser console:
GET http://X.X.X.X/api/config 404 (Not Found)
It's been 2 days i'm on it and i can't find any solution in the issues, is it maybe because i'm not putting the files in /var/www/html ? I don't really know, so if you could help me i'll be great :)
Thanks !
The text was updated successfully, but these errors were encountered: