skip to Main Content

Docker: NGINX and PHP: Why change the default user/group?

I started learning about Docker and setting up NGINX and PHP. I looked at some examples and saw the following example: https://github.com/aschmelyun/lc-the-docker-tutorial/blob/main/nginx.dockerfile There are two dockerfiles, one for NGINX (nginx.dockerfile): FROM nginx:stable-alpine ENV NGINXUSER=laravel ENV NGINXGROUP=laravel RUN mkdir -p /var/www/html/public…

VIEW QUESTION

Nginx not redirecting domain as expected

I have the following nginx configuration file server { listen 80 default_server; server_name _; return 301 https://dashboard-test-deb11.company.com$request_uri; } server { server_name dashboard-test-deb11; return 301 https://dashboard-test-deb11.company.com$request_uri; } server { listen 443 ssl default_server; # listen [::]:443 ssl default_server; server_name dashboard-test-deb11.company.com; ssl_certificate…

VIEW QUESTION
Back To Top
Search