Answer the question
In order to leave comments, you need to log in
How to open Internet access to a local web server?
Good day!
the question is. How to open Internet access to a local web server?
I will write in more detail. there is a local server on it OpenLiteSpeed + Cyberpanel, goes through the router to the Internet, on the router 443 and 80 + for the web admin panels 7080 8090 ports are forwarded. ports are also open on the firewall on the server (ubuntu server 20).
the instructions for which I installed
during the preview, the cyberpanel page is displayed
when navigating both locally and via external ip, it always shows a 404 error. and when navigating through the domain "Unable to access the site",
for example, let's say I have a domain test.ru domain zone test.ru, dns records NS test.ru - ns1.test.ru and A ns1.test.ru - ip- the address.
what and where am I missing?
Answer the question
In order to leave comments, you need to log in
For starters, we test locally. judging by the error, you need to look at what is there in the web server config. because it responds to the request, but the page does not exist;
also, did the web server have the rights to the folder with the site files, if it was copied there at all
Forward ports on the router to the local address and port of the web server. In this case, the external port may differ from the internal one used by the web server.
After that, the web server should be accessible from outside at the external address of the router.
If for some reason the site does not work - turn on the logs on the web server and see what requests come in and the server's responses. Fix errors in the web server configuration.
Firewall can block traffic. The firewall can be on both the web server and the router, and both can block traffic.
Test first on the external IP of the router. Only after this option works, set up DNS and continue testing by domain name. Do not immediately interfere with everything in a heap, it will be more difficult to understand.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question