best solution for webserver redirection
MK
public at kubikcz.net
Thu Sep 14 12:43:45 PDT 2006
Hello all
I would like to know the best solution which is suitable for webserver
redirection in following situation:
LAN --- WEBSERVER_ON_LAN ---------- NAT_OpenBSD_Apache -------- internet
OpenBSD NAT has only one public IP, and a domain name: for example -
example.net
main webserver on OpenBSD is accessible under this domain name. But what to
do when I want to allow access also for webserver on my LAN for users from
internet under another domain: lan.example.net
I can not use redirection in PF because I need both web server on same
standard port. I think that this situation is not solvable simply by PF
because it does not do application level filtering.
I've found in Apache manual that I can use a redirect as Virtual Hostname. I
set it up and it works. Whenever the request for lan.example.net is in a
game the Apache inform the client's browser to use public IP of OpenBSD and
non standard port which is redirected by PF to lan web server.
Is there any better solution for my case? For example it does not look very
nice when you have an IP address in your URL address bar instead of domain
name in your browser. I can not use additional public IP address.
Thank you for any hint
MK
More information about the Openbsd-newbies
mailing list