Serving Web pages along side Poppy Web interface

I’m trying to provide access to some images and text on the poppy humanoid as URLs through apache2 web server.
I’m not sure how the web control interface redirects external requests.
On the poppy if I http://localhost i get the contents of /var/www/
If I http://localhost:2280 then i get the poppy web control interface. (From Puppet-Master I presume)
Logging in from my laptop http://poppy.local or htpp://ipaddress I get the poppy interface.
How can I make both poppy and normal apache content available?
Thanks!

Hi,

Looks like you can reach the apache server only in localhost. I’m surprise you get the poppy interface on poppy.local. It should be poppy.local:2280 ??
Do you mean you have the same poppy control interface using http://ipadress_of_poppy and http://ipadress_of_poppy:2280 and what if you try http://ipadress_of_poppy:8080 ?
Can you paste screen copy ?

There is a rule on Iptables (Linux firewall) to redirect income 80 TCP connection to the local 2280 TCP port.

To delete this functionality you can move the script somewhere else, for example:

sudo mv /etc/network/if-up.d/firewall /home/poppy/dev/firewall

Thanks @Theo
I was wondering where the redirection was.
I want to keep the poppy redirection for notebooks.
I found I can just save my files into the puppet-master hierarchy for now.
Was thinking of installing nginx on 8080 for static files but that’s probably overkill.

Cheers!

Note also than Jupyter Notebook is running on the 8080 port, you can access directly on http://yourRobotHostname.local:8080

Unless you want to serve your static files for lot of people it is not mandatory.
Nevertheless, if you want to contribute to raspoppy to use ngnix instead of the iptables redirection, you are welcome to do a PR, it would cleaner.