Host Header Filtering

1
Hello, I would like to run two applications under the same port. For example, I would like to run application 1 as app1.webserver.com and application as app2.webserver.com under the same port. Is this possible using host header filtering or through other means?
asked
2 answers
2

Yes, but you'll need to host your Mendix application behind a web server that supports this.

If you're using Apache, you can use a configuration like this:

<VirtualHost *:80>
    ServerName app1.webserver.com    
    DocumentRoot "C:/App1/Application/web"

    ProxyRequests Off
    ProxyPass /xas http://mx-server.local:8080/xas
    ProxyPassReverse /xas http://mx-server.local:8080/xas
    ProxyPass /ws http://mx-server.local:8080/ws
    ProxyPassReverse /ws http://mx-server.local:8080/ws
    ProxyPass /file http://mx-server.local:8080/file
    ProxyPassReverse /file http://mx-server.local:8080/file

    <Location />
        order allow,deny
        allow from all
    </Location>
</VirtualHost>


<VirtualHost *:80>
    ServerName app2.webserver.com    
    DocumentRoot "C:/App2/Application/web"

    ProxyRequests Off
    ProxyPass /xas http://mx-server.local:8081/xas
    ProxyPassReverse /xas http://mx-server.local:8081/xas
    ProxyPass /ws http://mx-server.local:8081/ws
    ProxyPassReverse /ws http://mx-server.local:8081/ws
    ProxyPass /file http://mx-server.local:8081/file
    ProxyPassReverse /file http://mx-server.local:8081/file

    <Location />
        order allow,deny
        allow from all
    </Location>
</VirtualHost>
answered
0

Within IIS you can do this with your bindings.

answered