All my Servers are VMs and running on a kvm host(Root Server, only ssh).
There are two networks:
192.168.122.0/24 --> Nat
192.168.100.0/24 --> Isolated & no DHCP, zentyal makes dhcp and gateway
The Zentyal Server has the addresses:
eth0 = 192.168.122.2 (zentyal.example.lan)
--> This marked as external. All desired port are forwarded to this vm. Included the port 80 & 443
eth1 = 192.168.100.2
--> This is the internal network. Vms inside the network 192.168.100..0/24 are not accessible from the kvm host and the internet. The zentyal acts as dhcp server and gateway for this network.
The domain suffix *.lan denotes that is an internal network and the suffix *.de denotes the domain as external.
I am running serveral VMs in the isolated Network which are connected over zentyal server. Everythings works fine.
One VM acts as Mediawiki server(192.168.100.112,
http://mywiki.example.lan).
I can request the wiki from the internal network.
Now I want reach my wiki from outside my internal network.
Therefore I configured my server as follow:
"Web Server" Section I created a new Virtual Host named
http://mywiki.example.de. This is the address which i want to use to call the wiki over the internet.
If I want to forward my http request from 192.168.122.2 to
http://mywiki.example.lan. I need to change the following file:
/etc/apache2/sites-available/user-ebox-mywiki.example.de/000-default
ProxyPass /
http://mywiki.example.lan/ProxyPassReverse /
http://mywiki.example.lan/and it happens the same behavior like explained in my last post?
why it is not possible to forward a web url root(like http://mywiki,example.de) to an internal web server like http://mywiki.example.lan(Document root in apache is: /) ??
because this:
/etc/apache2/sites-available/user-ebox-mywiki.example.de/000-default
ProxyPass /mywiki
http://mywiki.example.lan/mywikiProxyPassReverse /mywiki
http://mywiki.example.lan/mywikiworks perfectly.
I hope I could make my problem understandable.
My apache configuration is wrong and
I need the right one.
Sorry the idea with the dns is not possible and there are no errors.