Replies: 1 comment 6 replies
-
How are your nginx.conf look in magento project folder. Is it lowercased $mage_run_type? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Following “Set Up a Magento 2 Development Environment with Docker” course.
This is my
/images/nginx/conf/default.conf
`upstream fastcgi_backend {
server unix:/sock/docker.sock;
}
map $http_host $MAGE_RUN_CODE {
default base;
foo.test foo_website;
}
server {
listen 8000;
return 301 https://$host$request_uri;
}
server {
listen [::]:8443 ssl http2 ipv6only=on;
listen 8443 ssl http2;
ssl_certificate /etc/nginx/certs/nginx.crt;
ssl_certificate_key /etc/nginx/certs/nginx.key;
server_name magento.test foo.test;
set $MAGE_ROOT /var/www/html;
set $MAGE_RUN_TYPE website;
fastcgi_buffer_size 64k;
fastcgi_buffers 8 128k;
location /livereload.js {
proxy_set_header Host $host;
proxy_pass http://phpfpm:35729/livereload.js;
}
location /livereload {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://phpfpm:35729/livereload;
}
include /var/www/html/nginx[.]conf;
}`
nginx.conf file in Magento project:
Beta Was this translation helpful? Give feedback.
All reactions