Horje
Deploy single page application Angular: 404 Not Found nginx Code Example
Deploy single page application Angular: 404 Not Found nginx
# for those not using a Staticfile might wanna try this.

# I had the same problem with nginx serving angular. The following is the default config file, probably found somewhere in /etc/nginx/sites-available/yoursite

     location / {
            # First attempt to serve request as file, then
            # as directory, then fall back to displaying a 404.
            try_files $uri $uri/ =404;
    }
# but what we acctually want is...

     location / {
            # First attempt to serve request as file, then
            # as directory, then redirect to index(angular) if no file found.
            try_files $uri $uri/ /index.html;
    }




Shell

Related
syslog-ng[31899]: error processing log message: <111> splunk format Code Example syslog-ng[31899]: error processing log message: <111> splunk format Code Example
where to find zshrc mac Code Example where to find zshrc mac Code Example
count symlink dir bash Code Example count symlink dir bash Code Example
aws code commit Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights Code Example aws code commit Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights Code Example
view ipconfig in vim on windows Code Example view ipconfig in vim on windows Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12