We are developing a kiosk software based on ubuntu 14.04 running on a touchscreen hardware (info stele) , currently there is an Apache Webserver running and serving our kiosk web app locally at https://smartbox.localhost
Now we want our app to display foreign websites in an iframe which fails since they send the X-Frame-Options
Deny/Same-Origin
headers.
As I see, the most reasonable solution to this scenario would be to setup a reverse proxy server, something like I found here but I just don't know exactly what to do with it (I have no experience with configuring nginx until now)
Would that mean to run nginx in parallel to the Apache?
Would our App then be served by Apach on another Port (It is crucial that we use HTTPS btw) and have nginx listen on Port 80/443?
Where would I put that snippet? In /etc/nginx/nginx.conf
? Or somewhere in /etc/nginx/sites-available/
?
I would be very grateful if someone could give a little more in-depth "how-it-works" and "what-to-do"
Thanks a lot in advance!