nginx Reverse Proxy with plesk -
i've seen answers on here , none of solutions seem work.
i have domain.com wordpress install , script running on domain.com:6000
i want able have script.domain.com show what's on domain.com:6000
now other big issue plesk. (it gets lot of hate people using website ui.) here's i've done/tried
new folder , file in /var/www/vhosts/domain.com/conf
file : vhost_nginx.conf , what's in
server { listen 80; server_name script.domain.com; location / { proxy_pass http://domain.com:6000; } }
also having tried
location /script/ { proxy_pass http://domain.com:6000/; }
to try , have domain.com/script show different.
any suggestions?
right in plesk 12.5 there no way override "location /"
via plesk, because custom conf files added @ end of nginx's server section after default "location /"
derectives.
you can create or change hosting type of subscription forwarding in answer https://serverfault.com/a/541055/154664 in case port visible in url.
another solution create own custom virtual host in nginx in separate config - it's easiest way now.
another solution customize virtual hosting templates, it's side effects on plesk upgrade.
Comments
Post a Comment