Is it possible to redirect from Apache to the address of the OpenVpn?

There is a server. It is Apache. Is it possible to organize such a thing? To make it even and OpenVpn server. people visits the site, clicks a link and it redirects to another server, which is Apache and OpenVpn client. Messed up, but I nothing came up.
September 26th 19 at 11:51
2 answers
September 26th 19 at 11:53
Don't really understand what's openvpn.
You want to configure Apache so that it at what location acted as a front by redirecting the request through a vpn somewhere inside?
Yes, you can.
But it is better to use nginx, it is less resources for a connection eating.
I explained badly. I've got a mini server for home security camera on the Raspberry PI. I want to put to the country via the usb-whistle. And the operators don't allow this to be done. Solves the problem of OpenVpn, but I want to make below the OpenVpn client-the client is not set up on each device. and take the go to home server, click a reference and get on the server give. - Clay_Gibson36 commented on September 26th 19 at 11:56
you can configure nginx as a reverse proxy which is using vnp goes to your respberry.
Picture from the Internets:
Green in this diagram, nginx , yellow your raspberry - Jordon_Hickle91 commented on September 26th 19 at 11:59
Thank you for your comprehensive answer. Understand - Clay_Gibson36 commented on September 26th 19 at 12:02
September 26th 19 at 11:55
hmm, "a picture about a trolley bus and a loaf of bread"
why all THIS?
You have a server with apache? let it be a server, we need VPN? go, but why let the outside inward?
make a single web server with all services, the second to connect to the VPN and remove apache from the inside to go on the main, from outside to go there. profit.

Find more questions by tags ApacheIPOpenVPN