Hi, i have domain domain.com, im add it to my website - now i want make reverse proxy from admin.domain.com to my admin panel IP. But when i paste my config, i have 403 Forbidden.
Without adimn path it work fine but i dont want have that path 🙂
My config, what i make wrong ?
`#PROXY-START/0aacb5d2/
location ^~ /0aacb5d2/
{
proxy_pass https://localhost:7800/;
proxy_set_header Host admin.domain.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
#Persistent connection related configuration
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
{
}
proxy_ignore_headers Set-Cookie Cache-Control expires;
proxy_cache cache_one;
proxy_cache_key $host$uri$is_args$args;
proxy_cache_valid 200 304 301 302 5m;
}
#PROXY-END/0aacb5d2`