nginx 프록시 odoo 서버를 사용하려고합니다. 난은/etc/nginx를/사이트 이용 가능한이nginx 프록시 odoo 파이썬 서버를 사용
upstream odoo {
server 127.0.0.1:8069;
}
server {
listen 443 default;
server_name www.cheeseyun.com;
access_log /var/log/nginx/oddo.access.log;
error_log /var/log/nginx/oddo.error.log;
ssl on;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
keepalive_timeout 60;
ssl_ciphers HIGH:!ADH:!MD5;
ssl_protocols SSLv3 TLSv1;
ssl_prefer_server_ciphers on;
proxy_buffers 16 64k;
proxy_buffer_size 128k;
location/{
proxy_pass http://127.0.0.1:8069;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
location ~* /web/static/ {
proxy_cache_valid 200 60m;
proxy_buffering on;
expires 864000;
proxy_pass http://127.0.0.1:8069;
}
}
server {
listen 80;
server_name www.cheeseyun.com;
add_header Strict-Transport-Security max-age=2592000;
rewrite ^/.*$ https://$host$request_uri? permanent;
}
file.like 구성하고 테스트 configuer에 명령을 사용 odoo/
#service nginx configtest
* Testing nginx configuration [ OK ]
사용하는 또 다른 방법은 테스트 할
$sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
변경
하지만 명령 시작 nginx 서버를 사용할 때 start.no error.log 또는 access.log와 관련된 프로세스가 없습니다.이 problem.can의 원인을 찾아 낼 수 없으므로 오류를 발견하는 데 도움이됩니까?
고마워요! 한가지 더 질문 하나? 왜 내가 nginx 서비스가 다시 작동하지 않는 서비스를 사용합니까? 그들 사이의 차이점은 무엇입니까? –