0

I have a static site which is written in VueJS. I'm hosting it on a PHP environment in AWS Elastic beanstalk which appears to be using nginx.

In this site, I'm using the Vue router which handles all URLs and for that to work properly, I need the Nginx server to route all 404 requests to the root of the site, i.e "/", instead of the default Nginx 404 error page.

I'm not familiar with Nginx at all, but I can see that you can change the 404 page by editing a config file which resides in /etc/nginx/nginx.conf but since this is on an environment in AWS Elastic beanstalk, I have no idea how or even if I can change that file at all. Is there a way for me to somehow specify a custom 404 page with some sort of configuration which simply resides within the www root folder of my app along with my static HTML files? I'm thinking something along the lines of the web.config file in IIS?

haukurhaf
  • 163
  • 1
  • 7

0 Answers0