Configuring vnext to run in a sub-directory

Hiya,

For one of our servers, I have diligently followed this guide to set up vnext: Setting Up the Backend for M-Files Web and Web-Based Add-Ins (September '22 Update and Earlier)

It should be noted that we run, and will continue to run, rpc over http proxy for some M-Files clients until moved manually.

We have opted to put the vnext web inside a sub-application called vnext under the default website, as per the guide, and so far so good, most of it works.

However, I cannot seem to get the /vnext/link/ part to work, as all the resources on that page use an absolute URL, and hence, all scripts and styling is gone.

We also have a separate issue when authenticating for the first time, it redirects to /vnext#code=231312312312, which is not caught by the rewrite rule supplied by the guide.

Best regards

//Fred_

Parents Reply Children
  • The thing is, we need to go slow with this customer and have vnext as an option, so we cannot change the default website. Also we have many links to documents in external systems, and then all those would have to be migrated.

  • OK.
    You can have multiple rewrite rules that handles different types of links and rewrite or redirect them differently. You just need to add conditions in each rule that filters out links that should be handled by another rule. So you can have a general rule that handles common links except those needed for authentication, another rule that handles the authentication links and perhaps a third that handles scripts and styles etc. The difficult part, of course, is to configure the filters correctly to split up those different types of rules.