DIfferent "home" / on same server
September 06, 2018 03:18PM
Hi, i'm having a little trouble setting up nginx to do the following.
I have an Angular 4 website, and I've just re-did the home page in Angular 6.
I want the "/" location to use the new Angular 6 index.html, and the rest to go to the old website files.

I've attached my current configuration, assuming the new version of the home page is in /usr/share/nginx/html/new-ms/.
How can I make it work?

Thank you!
Attachments:
open | download - nginx.txt (1.4 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready