http host header

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?

At a computer outside of the network, run Fiddler, then access the server, and check out the request.

What’s important is whether the host header is the one expected there, as that’s what Apache responds to.

First: best program ever - i was not aware that this exists.

Second: The host is what is to be expected

so… no luck for now.

That’s strange… but it’s still probably some sort of an Apache misconfiguration…

How does your .conf file look like (with regards to the VirtualHost parts that is)?

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.

I don’t get it… This should work as is…

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.

Now works fine when using *:80



Regards