Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7182

Refresh 404 - How to configure Url re-write for an Angular app on ubuntu hosted on Azure

$
0
0

I've deployed an Angular 14 app to an Azure App Service and need to setup re-write rules so that refreshing routes doesn't throw 404 errors. Hitting the site root (index.html) works fine, the app functions normally until you try to navigate directly to a route withing the app such as /orders for example.

I deploy using github actions and have setup to run on ubuntu and it's a mystery whether Apache or Nginx are serving pages. I setup a staticwebapp.config.json with navigationFallback rules but this appears to be something used by Azure 'Static Web App' services rather than 'App Services'. Online documentation for this is sparse and there is a ton of info on IIS web.config. SSH doesn't seem to reveal much either. This can't be that difficult unless something huge is missing !

I've tried hunting in SSH, I've tried inspecting response headers on the app, watched videos etc, what's missing ???


Viewing all articles
Browse latest Browse all 7182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>