Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
966 B
1
Indexable
Never
upstream fastcgi_backend {
    server   unix:/var/run/php/php7.2-fpm.sock;
}


map $http_host $MY_RUN_CODE {
        greatlife2.local default;
        no-greatlife2.local norway;
        fi-greatlife2.local finland;
        eu-greatlife2.local europe;
}

map $http_host $MY_RUN_TYPE {
        greatlife2.local store;
        no-greatlife2.local store;
        fi-greatlife2.local store;
        eu-greatlife2.local store;
}

server {
    listen 80;

    server_name greatlife2.local no-greatlife2.local fi-greatlife2.local eu-greatlife2.local;
#    server_name greatlife.se 
#    server_name *.ngrok.io
#    server_name greatlife2.indvp.com
    access_log  /var/log/nginx/greatlife.access.log;
    error_log   /var/log/nginx/greatlife.error.log;

    set $PHPSOCKET unix:/var/run/php7.2-fpm.sock;

    set $MAGE_ROOT /var/www/greatlife/;

    set $MAGE_RUN_CODE $MY_RUN_CODE;
    set $MAGE_RUN_TYPE $MY_RUN_TYPE;

    include /var/www/greatlife/nginx.conf.sample;
}