lolsharp
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
Gallery
Bug Reports
Documentation
Landing
Posts posted by lolsharp
-
-
I did my setup following the tutorial from spaceinvader one just using the new swag docker container.
Due to the port forwarding if I access my WAN IP I land on the "Welcome to your SWAG instance" Page.
Now my goal is to simple drop these request (return 444) and only respond to requests targeting
supportedsubdomain.domain.com
supportedsubdomain2.domain.com
-
Probably a stupid question and easily solved, but my search always returns results solving the opposite problem.
I set up the reverse proxy and everything works fine. I can access the sites hosted under my subdomains perfectly.
Now I want to drop all connections not directly directed at one of my supported domains.
If I access my Public IP I want to get no result at all.
As far as I figured out I should be able to do that be configuring the default config.
But so far I only managed to either block nothing or block everything.Any tips how to adapt the config?
[Support] Linuxserver.io - SWAG - Secure Web Application Gateway (Nginx/PHP/Certbot/Fail2ban)
in Docker Containers
Posted
I dont know what my problem was yesterday, I think I had something quite similar. But figured it out now.
Relevant Part of my default file:
Additional Server Block to drop all requests.
Server name for http und https change to only work for my domain