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

No data in web interface after installing Apache #21

Closed
timhux123 opened this issue Mar 12, 2019 · 2 comments
Closed

No data in web interface after installing Apache #21

timhux123 opened this issue Mar 12, 2019 · 2 comments

Comments

@timhux123
Copy link

I installed apache using the commands in the Install steps:

sudo apt-get install apache2
cd telnet-iot-honeypot
cp -R html /var/www
sudo chown www-data:www-data /var/www -R

I restarted apache using "sudo service apache2 restart".
I'm still seeing data being populated in the web interface but still under port 5000 (http://127.0.0.1:5000) and not under port 80 (http://localhost).
Is there another configuration change needed so data is populated under the web interface served by apache?

@Phype
Copy link
Owner

Phype commented Mar 13, 2019

You need to change html/apiurl.js to the url of the backend then (in the copy in /var/www, of course). If you are using apache to serve the frontend to other machines, remember that you need to make port 5000 accessible then or make apache do some reverse-proxying.

@timhux123
Copy link
Author

Thanks for the update. I got it working by using your recommendations.

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

2 participants