2
어떻게 nginx 서버의 구성을 올바르게 쓸 수 있습니까?NGINX의 사용자 에이전트에 의해 다른 파일
...
if the client has useragent (A) and it refers to http://somehost.domain/somefile.someextension
nginx responding a file from the root /file.zip
if the client has useragent (B) and it refers to http://somehost.domain/somefile.someextension
nginx responding a file from the root /file2.zip
if the client has useragent (C) and it refers to http://somehost.domain/somefile.someextension
nginx responding 403 error
...
이 코드했다 :
map $http_user_agent $browser {
"~*Firefox" "/var/www/test1";
"~*Wget" "/var/www/test2";
"~*SomeUserAgent" "/var/www/test3";
}
server {
...
root $browser
을하지만 어떻게 조건이 모든 주소 http://somehost.domain/somefile.someextension로 전달받을 수 있나요?