I would like a help to use multiples web servers with subdomain and web proxy, I used this : https://wiki.mikrotik.com/wiki/Multiple_Web_Servers tutorial to configure it, But I would like to know if is possible arrives public IP in my destination(web server), Because today I have problem to know how is the public ip adress from my client, because always arrives in my web server The Mikrotik router ip address, I need know the public ip adress that connect in my web server.
You can’t get client’s IP address because web proxy is not transparent … rather it’s a part of a chain chain where ROS web server takes request from client, then sends same request to internal server and then relays the response. Behaviour is the same as with some renown web server software (e.g. Apache), but those offer a work-around by including some custom header in request to internal server which includes client’s address … such header might be called “X-Forwarded-For” or something alike. You might want to check if this is the case with ROS’ proxy as well but I have doubts about it (Apache doesn’t have this header enabled by default either).
If you don’t enable web proxy’s anonymous option, it will send client’s IP address to server in X-Forwarded-For header. The server won’t see it on network level, because the connection really comes from proxy, but something can take it from the header (scripting language, webserver module, …).
My option Anonymous is disabled, I tried to do it.
Then the header should be present.