Questions tagged nginx

Explore the latest questions and answers asked by our top developers.

How to Adapt angular components path while using a Nginx reverse Proxy?

I’m using a reverse Proxy in order to run two applications on the same port by using Nginx. This is my Nginx conf file. server{ listen 80; location / { proxy_pass "http://127.0.0.1:8081"; } location /admin { rewrite ^/admin(.*) $1 break; proxy_pass "http://127.0.0.1:8085"; } } My Angular app running on port 8085 is not handling the […]

By L L
Published
Categorized as angular, nginx Tagged ,

Cross-Origin Request Blocked js files (angular deployed on nginx )

hello i am facing issue i’m using nginx server on centOS linux after i deployed my angular project and configuration when i run on browser it gave error on internal generated js files and browser page is still blank this is my config file: listen 80; server_name localhost; location / { root /usr/share/nginx/html/core-app-plus; index index.html […]

By Abdul Mateen
Published
Categorized as angular, cors, cross-domain, nginx Tagged , , ,

How do I resolve the CORS – No Allow Credentials error?

I have an Angular front end making requests to an nginx back end. Right now the nginx server is just returning a static response, but eventually it will proxy to a back end. However I can’t seem to get past a CORS error – Firefox reports "CORS No Allow Credentials" in the network tab. The […]

By DrTeeth
Published
Categorized as angular, cors, nginx Tagged , ,

Hosting Angular and Django on a VPS [closed]

I’ve already hosted my Django application on a VPS using gunicorn and Nginx. I created a config file for the Django app under /etc/nginx/sites-available/myapp and the app is running well on port 80. The below image is the config file regarding the Djagno app: Now, I want to run the Angular application on the same […]

By Osama Radwan
Published
Categorized as angular, django, hosting, nginx, vps Tagged , , , ,

Nginx serves all AngularJs files (JS, CSS) with index.html content

I have an Angularjs app (v1) that is built as a Docker image (with Nginx as webserver). The app was built successfully except that for each request I always get JS and CSS files with the content of the index.html. 1. The Dockerfile # STAGE 1: Compile and Build angular codebase # Use official node […]

By Tan Viet
Published
Categorized as angularjs, docker, nginx Tagged , ,

Nginx serves files for the routes that don’t exist in the Angularjs app

I have an Angularjs app (v1) that is built as a Docker image (with Nginx as webserver). The app was built successfully. I want the app will serve index.html when users visit to http://localhost:5000/content and login.html when going to http://localhost:5000/content/login. Both of paths /content and /content/login don’t exist in that app. 1. The Dockerfile # […]

By Tan Viet
Published
Categorized as angularjs, docker, nginx Tagged , ,

How to serve multiple angular apps from one digital-ocean droplet based on /path?

I am new to digital ocean platform and nginx, I have setup a droplet which serves an angular app seamlessly, however I want to serve multiple angular apps from one digital-ocean droplet based on URL/path. for an example abc.com/app1 —–> ~/app1/index.html abc.com/app2 —–> ~/app2/index.html and so on. Please refer following configuration I have for my […]

By Alok G
Published
Categorized as angular, digital-ocean, nginx Tagged , ,

Configuring nginx to serve angular and node.js code with ssl and subdomain

I am setting up an automated deployment of Angular & Node application. Here is what I have done so far: Setup a node.js code pipeline on AWS code pipeline such that the artifact, a docker container is pushed to docker hub registry. Another AWS code pipeline builds angular (frontend) and copies the static files in […]

By Dataneers
Published
Categorized as angular, docker, https, nginx, node.js Tagged , , , ,

Docker – Angular app image is not working ("/etc/nginx/html/index.html" is not found)

So I’ve got an angular app for which I’ve created a Dockerfile . Tried to created build out of it and after resolving some build issues it was successfull. The container is running but application is not and this is what I see in logs of NgInx 2021/11/26 13:13:03 [error] 8#8: *1 "/etc/nginx/html/index.html" is not found (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "GET / HTTP/1.1", host: "localhost:82" 172.17.0.1 – – [26/Nov/2021:13:13:03 +0000] "GET / HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 Edg/94.0.992.50" This is my docker file FROM […]

By Tarunjeet Singh Salh
Published
Categorized as angular, docker, nginx Tagged , ,

Docker compose Nginx inner container returns a 404 when its accessed through an outer container

I have a docker compose with a few services interconnected, i.e. front-end, back-end and a DB. My intention is to run a set of end to end tests in a separate container using cypress pointing to the front-end that is running in the docker compose. For this, I run the outer container in the same […]

By Fernando
Published
Categorized as angular, cypress, docker, nginx Tagged , , ,
1 2 3 32

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq