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 command
cmd > nginx.exe -s reopen
'Web_Application' 카테고리의 다른 글
[다음 지도api] 클러스터,마커 만들기와 지우기 이벤트 사용하기 (0) | 2018.01.24 |
---|---|
[mustache] html 그대로 표시 ( Do not escape html ) (0) | 2018.01.10 |
[link] online syntax highlighter (0) | 2017.12.29 |
2017 web developer road map (0) | 2017.03.31 |
[nginx]10013: An attempt was made to access a socket in a way forbidden by its access permissions (0) | 2017.01.12 |