koush / AndroidAsync

Asynchronous socket, http(s) (client+server) and websocket library for android. Based on nio, not threads.
Other
7.52k stars 1.56k forks source link

Host angular 2+ web app #697

Open matzrm opened 3 years ago

matzrm commented 3 years ago

Hi,

I'm using AndroidAsync on my app, and I need to configure it to host an angular 2+ web app. Usually in other enviroment I use apache2 and I need to configure it as follow:

    # Don't rewrite files or directories
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    # Rewrite everything else to index.html
    # to allow html5 state links
    RewriteRule ^ index.html [L]

But with AndroidAsync I can't figure it myself.

Anyone can help me?