nginx (2) 썸네일형 리스트형 CORS on Nginx location ~ \.php$ { try_files $uri /index.php =404; #root public; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_intercept_errors on; fastcgi_param SCRIPT_FILENAME d:/dev/nginx/freemusic/public$fastcgi_script_name; include fastcgi_params; add_header Access-Control-Allow-Origin *; } nginx 다시시작windows commandcmd > nginx.exe -s reopen [nginx]10013: An attempt was made to access a socket in a way forbidden by its access permissions 2017/01/12 09:01:41 [emerg] 7444#9312: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions) 80포트가 점유 상태 일 때 확인 D:\dev\nginx-1.11.6>netstat -ano |find /i "listening"|find /i ":80" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4 TCP [::]:80 [::]:0 LISTENING 4 뒤에 4 번이 PID 프로세스 번호 입니다. 4번 프로세스를 중지시키면 80포트 점유가 풀립니다. C:\Windows\system32>tasklist.. 이전 1 다음