I have a wonderfully working apache server, you can connect to it from LAN and from the Internet, no problems, ports are forwarded. And with my website in LAN, he also gets along.

But there was a tough need for my local network to access the server via external ip. This was due to mod_proxy_wstunnel, which apparently establishes a connection with a local socket via an external connection, since when I connect to my web sites via a server from the Internet, I always get the same error as if I tried to connect to my local server through an external ip, for this I specifically created situations with different errors.

What do I need to do?

My only host is:

<VirtualHost *:80> ServerAdmin admin@diskyp DocumentRoot "D:/XAMPP/htdocs/site" ServerName serv ErrorLog "logs/serv-error.log" CustomLog "logs/serv-access.log" common ProxyRequests Off ProxyPreserveHost On ProxyVia On SSLProxyEngine on <Proxy *> Options FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Proxy> ProxyPass /ws/ ws://127.0.0.1:8080/chat ProxyPassReverse /ws/ ws://127.0.0.1:8080/chat Header set Connection "upgrade" Header set Upgrade "websocket" </VirtualHost> 

In httpd.conf ServerName localhost:80 and Listen *:80 , more, I suppose, there is nothing interesting.

  • Lift the VPN tunnel between the front end and the server. - And
  • @And, do you have any recommendations on this? Does apache not solve my problem in any way? The first guide I stumbled upon was installing openVPN habrahabr.ru/post/233971 , but when I tried to skip this article to the end for 20 seconds, I started to get worried. Is there any super short and effective VPN start up guide? - Diskyp
  • Well, the options are different, try to read about Site-to-site VPN (IPSec). In general, it is better to start with the Fundamentals of interworking on TCP / IP networks first. In general, the topic of VPN is not quite small, if you want to figure it out, you will have to read it and delve into it, here you can’t tell you in two words. Everyone may have different settings and considerations on this, and generally it’s better to be a sysadmin :) - And
  • @And, no, I'm too lazy for this, I need a step-by-step guide like download-> open file-> correct line-> run, that would be perfect. - Diskyp
  • hire a sysadmin. - And

0