-1
특정 URL을 다른 포트에서 실행중인 로컬 서버로 리디렉션하고 싶습니다. nginx.config에 추가해야 할 항목이 확실하지 않습니다. 감사! URI가 그대로 유지됩니다 ngnix URL 리디렉션에 대한 설정 구성
location ^~ /v1/jobs {
proxy_pass http://www.domain.com:9090
}
사용
proxy pass
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}