Hi All,
I wish to achieve some functionality.
I got the domain (example domain.eu) then on registrar I created A record to point *.domain.eu at my external static IP which for argument sake is 195.0.0.1.
The local network is 172.16.0.0/22 and router IP is 172.16.0.1. Then I also have a separate web server; 172.16.0.2 (apache, debian)
I wish to create the following functionality:
If I type:
- domain.eu in the browser it would reach 195.0.0.1:80 displaying device web admin console (external access)
- web.domain.eu then the connection will be redirected to the webserver 172.16.0.2 displaying a website
So far I tried
1. Enabled WebProxy
2. Added NAT Rule to redirect port 80 to 8080 from Internet interface (ether1)
3. Added Accept rule for port 8080
4. Inside WebProxy I created Access rule to deny if web.domain.eu and redirect to web.domain.eu:8000
5. Added NAT rule to redirect 8000 to 80 on 172.16.0.2
Which kind of works... the issue I have is that when I go to http://web.domain.eu on my browser I get http://web.domain.eu:8000/index.php
I know this is totally expected and I understand why this is working that way I am only wondering if there is a different way to achieve my goal.
I want http://domain.eu to display external WebOS page and http://web.domain.eu to display website hosted on my webserver.