How can I route subdirX to port:subdirY with plesk and nginx?
Hi forum,
I read:
http://download1.parallels.com/Ples...inistrator-guide/index.htm?fileName=70837.htm
I have a fresh installation of linux plesk 11 with a domain configured and the following setup:
server.com/ -> wiki (routing already working)
I use the standard plesk setup, nginx is enabled.
Does anyone know how route the following:
server.com/ -> wiki (routing already working with plesk)
server.com/application_1 -> localhost:8000/application_1
server.com/application_2 -> localhost:9000/application_2
On my other servers I would use the following setup:
# rewrite / to port 7000 (apache)
location / {
rewrite ^/$ /wiki break;
proxy_pass http://localhost:7000/;
}
# rewrite /application_1
location /application_1 {
proxy_pass http://localhost:8000/application_1/;
}
# rewrite /application_2
location /application_2 {
proxy_pass http://localhost:9000/application_2/;
}
I don’t know where to configure the routing for application_1 and _2 in plesk.
Thanks for any pointers!
Hi forum,
I read:
http://download1.parallels.com/Ples...inistrator-guide/index.htm?fileName=70837.htm
I have a fresh installation of linux plesk 11 with a domain configured and the following setup:
server.com/ -> wiki (routing already working)
I use the standard plesk setup, nginx is enabled.
Does anyone know how route the following:
server.com/ -> wiki (routing already working with plesk)
server.com/application_1 -> localhost:8000/application_1
server.com/application_2 -> localhost:9000/application_2
On my other servers I would use the following setup:
# rewrite / to port 7000 (apache)
location / {
rewrite ^/$ /wiki break;
proxy_pass http://localhost:7000/;
}
# rewrite /application_1
location /application_1 {
proxy_pass http://localhost:8000/application_1/;
}
# rewrite /application_2
location /application_2 {
proxy_pass http://localhost:9000/application_2/;
}
I don’t know where to configure the routing for application_1 and _2 in plesk.
Thanks for any pointers!
Last edited: