nginx: [emerg] 알 수 없 는 log format "access" 오류 해결 방법

904 단어 nginx
centos 시스템 에서 도 메 인 이름 을 설정 하 는 과정 에서 브 라 우 저 를 방문 하 는 데 다음 과 같은 오류 가 발생 할 수 있 습 니 다. nginx: [emerg] unknown log format "access".
해결: nginx. conf 설정 파일 에 include vhost / *. conf;앞 에 추가
log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '
             '$status $body_bytes_sent "$http_referer" ' 
             '"$http_user_agent" $http_x_forwarded_for';

좋은 웹페이지 즐겨찾기