Probably not the answer you wanted, but as far as I know this is not only impossible, but also one of the reasons why you really should not deploy Mendix without a web server. One other very important reason is that you always should use secure (HTTPS) connections.
When deploying in the Mendix Cloud all of this (and more) is taken care of automatically, so if possible consider using the Mendix Cloud.