Commit 51eb906d authored by huasheng's avatar huasheng

update nginx

parent 7bce1487
......@@ -25,7 +25,8 @@ COPY ./nginx.conf /etc/nginx/
COPY ./upstreams/* /etc/nginx/upstreams/
COPY ./res/* /etc/nginx/res/
COPY ./ssl/* /etc/nginx/ssl/
COPY ./sites_online/* /etc/nginx/sites-available/
#COPY ./sites_online/* /etc/nginx/sites-available/
COPY ./sites_temp/* /etc/nginx/sites-available/
ADD ./startup.sh /opt/startup.sh
RUN sed -i 's/\r//g' /opt/startup.sh
......
server {
listen 80;
server_name uc.fxqifu.com;
index index.html index.php;
root /var/www/user-center/public;
include /etc/nginx/res/fxqifu.com_cert.conf;
include /etc/nginx/res/php-fpm-normal.conf;
location ~ \.php$ {
fastcgi_pass user-center;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
include /etc/nginx/res/static_resource.conf;
access_log /var/log/nginx/uc.fxqifu.com_access.log access;
error_log /var/log/nginx/uc.fxqifu.com_error.log error;
}
server {
listen 80;
server_name welfare.fxqifu.com;
index index.html index.php;
root /var/www/welfare/public;
include /etc/nginx/res/fxqifu.com_cert.conf;
include /etc/nginx/res/php-fpm-normal.conf;
location ~ \.php$ {
fastcgi_pass welfare;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
include /etc/nginx/res/static_resource.conf;
access_log /var/log/nginx/welfare.fxqifu.com_access.log access;
error_log /var/log/nginx/welfare.fxqifu.com_error.log error;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment