From my perspective, this is a mikrotik problem.
I have a wamp server with several virtual hosts.
All of them work file when i test from within the network (i have created corresponding entries in the hosts file)
however, when i try to access the site from outside (i use a simple single port dst-nat), i always get the default web server.
<?php print $_SERVER[SERVER_NAME];?> displays the correct address, but web server seems to ignore the host header and displays the default web site
Is it possible to correct this on mikrotik? Or is this an Apache problem?
Yes
I have added ‘127.0.0.1 my.domain.com’ to hosts file and virtual host works propperly
on another pc in the network, i have added ‘10.0.0.180 my.domain.com’ to hosts file and virtual host works propperly
that’s why i don’t know what to do (and that’s why i believe the problem is in the forwarding)
If you’re just forwarding the public IP’s port 80 to the private IP’s port 80, this shouldn’t be it. It could be RouterOS’ fault if you’re forwarding one public port to a different private one, but that’s not what you’re doing.
Thanks everybody for trying to help.
Apparently the error was my fast typing in combination of no thinking.
I created my virtual hosts as 127.0.0.1:80, so they worked locally and from the outside.