How to configure nginx for two static folder
up vote
1
down vote
favorite
Here I have nginx configuration for my both apps.
You can see I have comments in place where I need help.
upstream node1
server localhost:2053;
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
# ssl on;
ssl_certificate /home/ubuntu/CA/cert/mycert.pem;
ssl_certificate_key /home/ubuntu/CA/key/mykey.key;
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
server_name myPublicIP;
location /
root /home/ubuntu/app1/public;
index index.html index.htm
proxy_pass https://localhost:8443;
try_files $uri $uri/ =404;
location ~* ^.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)$
//Here I need create root for two apps,which are in defferent paths
//1st in /home/ubuntu/app1/public and second in /home/ubuntu/app2/public
location /users/register
root /home/ubuntu/app1/public;
index index.html index.htm;
proxy_pass https://localhost:8443/users/register;
location /users/authenticate
root /home/ubuntu/app1/public;
index index.html index.htm;
proxy_pass https://localhost:8443/users/authenticate;
location /users/home
root /home/ubuntu/app1/public;
index index.html index.htm;
proxy_pass https://localhost:8443/users/home;
location /game
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
root /home/ubuntu/app2/public;
index index.html index.htm;
proxy_pass https://node1/;
Here I need to set something like script, that looking for if location is /game/ to serve static files from app2 which is running on different port.For other locations server must serve static files from app1.Without nginx both works fine. How I can solve this problem.Thanks for help and for attention.
node.js nginx
add a comment |
up vote
1
down vote
favorite
Here I have nginx configuration for my both apps.
You can see I have comments in place where I need help.
upstream node1
server localhost:2053;
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
# ssl on;
ssl_certificate /home/ubuntu/CA/cert/mycert.pem;
ssl_certificate_key /home/ubuntu/CA/key/mykey.key;
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
server_name myPublicIP;
location /
root /home/ubuntu/app1/public;
index index.html index.htm
proxy_pass https://localhost:8443;
try_files $uri $uri/ =404;
location ~* ^.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)$
//Here I need create root for two apps,which are in defferent paths
//1st in /home/ubuntu/app1/public and second in /home/ubuntu/app2/public
location /users/register
root /home/ubuntu/app1/public;
index index.html index.htm;
proxy_pass https://localhost:8443/users/register;
location /users/authenticate
root /home/ubuntu/app1/public;
index index.html index.htm;
proxy_pass https://localhost:8443/users/authenticate;
location /users/home
root /home/ubuntu/app1/public;
index index.html index.htm;
proxy_pass https://localhost:8443/users/home;
location /game
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
root /home/ubuntu/app2/public;
index index.html index.htm;
proxy_pass https://node1/;
Here I need to set something like script, that looking for if location is /game/ to serve static files from app2 which is running on different port.For other locations server must serve static files from app1.Without nginx both works fine. How I can solve this problem.Thanks for help and for attention.
node.js nginx
That is confusing. Given that would be possible: How do you expect nginx to decide what asset to deliver if there is a match in both roots?
– Dirk Lachowski
Nov 13 at 18:02
So if I have 2 different apps how I can use them under nginx?
– Jor Khachatryan
Nov 14 at 6:27
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Here I have nginx configuration for my both apps.
You can see I have comments in place where I need help.
upstream node1
server localhost:2053;
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
# ssl on;
ssl_certificate /home/ubuntu/CA/cert/mycert.pem;
ssl_certificate_key /home/ubuntu/CA/key/mykey.key;
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
server_name myPublicIP;
location /
root /home/ubuntu/app1/public;
index index.html index.htm
proxy_pass https://localhost:8443;
try_files $uri $uri/ =404;
location ~* ^.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)$
//Here I need create root for two apps,which are in defferent paths
//1st in /home/ubuntu/app1/public and second in /home/ubuntu/app2/public
location /users/register
root /home/ubuntu/app1/public;
index index.html index.htm;
proxy_pass https://localhost:8443/users/register;
location /users/authenticate
root /home/ubuntu/app1/public;
index index.html index.htm;
proxy_pass https://localhost:8443/users/authenticate;
location /users/home
root /home/ubuntu/app1/public;
index index.html index.htm;
proxy_pass https://localhost:8443/users/home;
location /game
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
root /home/ubuntu/app2/public;
index index.html index.htm;
proxy_pass https://node1/;
Here I need to set something like script, that looking for if location is /game/ to serve static files from app2 which is running on different port.For other locations server must serve static files from app1.Without nginx both works fine. How I can solve this problem.Thanks for help and for attention.
node.js nginx
Here I have nginx configuration for my both apps.
You can see I have comments in place where I need help.
upstream node1
server localhost:2053;
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
# ssl on;
ssl_certificate /home/ubuntu/CA/cert/mycert.pem;
ssl_certificate_key /home/ubuntu/CA/key/mykey.key;
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
server_name myPublicIP;
location /
root /home/ubuntu/app1/public;
index index.html index.htm
proxy_pass https://localhost:8443;
try_files $uri $uri/ =404;
location ~* ^.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)$
//Here I need create root for two apps,which are in defferent paths
//1st in /home/ubuntu/app1/public and second in /home/ubuntu/app2/public
location /users/register
root /home/ubuntu/app1/public;
index index.html index.htm;
proxy_pass https://localhost:8443/users/register;
location /users/authenticate
root /home/ubuntu/app1/public;
index index.html index.htm;
proxy_pass https://localhost:8443/users/authenticate;
location /users/home
root /home/ubuntu/app1/public;
index index.html index.htm;
proxy_pass https://localhost:8443/users/home;
location /game
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
root /home/ubuntu/app2/public;
index index.html index.htm;
proxy_pass https://node1/;
Here I need to set something like script, that looking for if location is /game/ to serve static files from app2 which is running on different port.For other locations server must serve static files from app1.Without nginx both works fine. How I can solve this problem.Thanks for help and for attention.
node.js nginx
node.js nginx
edited Nov 9 at 13:54
asked Nov 9 at 13:43
Jor Khachatryan
5218
5218
That is confusing. Given that would be possible: How do you expect nginx to decide what asset to deliver if there is a match in both roots?
– Dirk Lachowski
Nov 13 at 18:02
So if I have 2 different apps how I can use them under nginx?
– Jor Khachatryan
Nov 14 at 6:27
add a comment |
That is confusing. Given that would be possible: How do you expect nginx to decide what asset to deliver if there is a match in both roots?
– Dirk Lachowski
Nov 13 at 18:02
So if I have 2 different apps how I can use them under nginx?
– Jor Khachatryan
Nov 14 at 6:27
That is confusing. Given that would be possible: How do you expect nginx to decide what asset to deliver if there is a match in both roots?
– Dirk Lachowski
Nov 13 at 18:02
That is confusing. Given that would be possible: How do you expect nginx to decide what asset to deliver if there is a match in both roots?
– Dirk Lachowski
Nov 13 at 18:02
So if I have 2 different apps how I can use them under nginx?
– Jor Khachatryan
Nov 14 at 6:27
So if I have 2 different apps how I can use them under nginx?
– Jor Khachatryan
Nov 14 at 6:27
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
If I got this right, you need static files being served from /home/ubuntu/app2/public when the user is in the /game/ url, and from /home/ubuntu/app1/public elsewhere. Did I get this right?
If so, you should probably make two different location
like the ones you already wrote. Something like
location ~* ^/game/(.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm))$
root /home/ubuntu/app2/public;
try_files $1 $1/ =404;
location ~* ^(.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm))$
root /home/ubuntu/app1/public;
try_files $1 $1/ =404;
This is untested, but it should do the job.
Thanks for reply GavinoGrifoni. This variant will work too,but I've created new location for first app and both apps work in different locations /app1/ and /app2/. I thought that using / location will bring some troubles in future because / directory contains /game/ directory too.And what about / location,right now it just redirect it to /app1/ maybe I'll do with it something else.So Thank you very much one more time))))))))))
– Jor Khachatryan
Nov 14 at 13:13
add a comment |
up vote
-1
down vote
You probably want to use an upstream on your location /games
Check out this: https://serverfault.com/questions/823234/use-nginx-upstream-group-with-multiple-ports
edit: I just saw youre using upstream already. But your upstream is probably listening on port 443 and not on port 2053 since youre proxy passing to
I need to serve static files (jpg,mp3,gif etc.) from different static folders for different apps,but in one host.Thanks in any case))))))
– Jor Khachatryan
Nov 9 at 13:53
This my third day since I'm using nginx.So you can find some mistakes in my configuration.I have socket.io in my app2 I read that its good practice to use upstream for app that running with sockets.
– Jor Khachatryan
Nov 9 at 14:05
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53226894%2fhow-to-configure-nginx-for-two-static-folder%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
If I got this right, you need static files being served from /home/ubuntu/app2/public when the user is in the /game/ url, and from /home/ubuntu/app1/public elsewhere. Did I get this right?
If so, you should probably make two different location
like the ones you already wrote. Something like
location ~* ^/game/(.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm))$
root /home/ubuntu/app2/public;
try_files $1 $1/ =404;
location ~* ^(.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm))$
root /home/ubuntu/app1/public;
try_files $1 $1/ =404;
This is untested, but it should do the job.
Thanks for reply GavinoGrifoni. This variant will work too,but I've created new location for first app and both apps work in different locations /app1/ and /app2/. I thought that using / location will bring some troubles in future because / directory contains /game/ directory too.And what about / location,right now it just redirect it to /app1/ maybe I'll do with it something else.So Thank you very much one more time))))))))))
– Jor Khachatryan
Nov 14 at 13:13
add a comment |
up vote
1
down vote
accepted
If I got this right, you need static files being served from /home/ubuntu/app2/public when the user is in the /game/ url, and from /home/ubuntu/app1/public elsewhere. Did I get this right?
If so, you should probably make two different location
like the ones you already wrote. Something like
location ~* ^/game/(.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm))$
root /home/ubuntu/app2/public;
try_files $1 $1/ =404;
location ~* ^(.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm))$
root /home/ubuntu/app1/public;
try_files $1 $1/ =404;
This is untested, but it should do the job.
Thanks for reply GavinoGrifoni. This variant will work too,but I've created new location for first app and both apps work in different locations /app1/ and /app2/. I thought that using / location will bring some troubles in future because / directory contains /game/ directory too.And what about / location,right now it just redirect it to /app1/ maybe I'll do with it something else.So Thank you very much one more time))))))))))
– Jor Khachatryan
Nov 14 at 13:13
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
If I got this right, you need static files being served from /home/ubuntu/app2/public when the user is in the /game/ url, and from /home/ubuntu/app1/public elsewhere. Did I get this right?
If so, you should probably make two different location
like the ones you already wrote. Something like
location ~* ^/game/(.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm))$
root /home/ubuntu/app2/public;
try_files $1 $1/ =404;
location ~* ^(.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm))$
root /home/ubuntu/app1/public;
try_files $1 $1/ =404;
This is untested, but it should do the job.
If I got this right, you need static files being served from /home/ubuntu/app2/public when the user is in the /game/ url, and from /home/ubuntu/app1/public elsewhere. Did I get this right?
If so, you should probably make two different location
like the ones you already wrote. Something like
location ~* ^/game/(.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm))$
root /home/ubuntu/app2/public;
try_files $1 $1/ =404;
location ~* ^(.+.(jpg|jpeg|gif|mp3|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm))$
root /home/ubuntu/app1/public;
try_files $1 $1/ =404;
This is untested, but it should do the job.
edited Nov 14 at 11:46
answered Nov 14 at 11:32
GavinoGrifoni
545928
545928
Thanks for reply GavinoGrifoni. This variant will work too,but I've created new location for first app and both apps work in different locations /app1/ and /app2/. I thought that using / location will bring some troubles in future because / directory contains /game/ directory too.And what about / location,right now it just redirect it to /app1/ maybe I'll do with it something else.So Thank you very much one more time))))))))))
– Jor Khachatryan
Nov 14 at 13:13
add a comment |
Thanks for reply GavinoGrifoni. This variant will work too,but I've created new location for first app and both apps work in different locations /app1/ and /app2/. I thought that using / location will bring some troubles in future because / directory contains /game/ directory too.And what about / location,right now it just redirect it to /app1/ maybe I'll do with it something else.So Thank you very much one more time))))))))))
– Jor Khachatryan
Nov 14 at 13:13
Thanks for reply GavinoGrifoni. This variant will work too,but I've created new location for first app and both apps work in different locations /app1/ and /app2/. I thought that using / location will bring some troubles in future because / directory contains /game/ directory too.And what about / location,right now it just redirect it to /app1/ maybe I'll do with it something else.So Thank you very much one more time))))))))))
– Jor Khachatryan
Nov 14 at 13:13
Thanks for reply GavinoGrifoni. This variant will work too,but I've created new location for first app and both apps work in different locations /app1/ and /app2/. I thought that using / location will bring some troubles in future because / directory contains /game/ directory too.And what about / location,right now it just redirect it to /app1/ maybe I'll do with it something else.So Thank you very much one more time))))))))))
– Jor Khachatryan
Nov 14 at 13:13
add a comment |
up vote
-1
down vote
You probably want to use an upstream on your location /games
Check out this: https://serverfault.com/questions/823234/use-nginx-upstream-group-with-multiple-ports
edit: I just saw youre using upstream already. But your upstream is probably listening on port 443 and not on port 2053 since youre proxy passing to
I need to serve static files (jpg,mp3,gif etc.) from different static folders for different apps,but in one host.Thanks in any case))))))
– Jor Khachatryan
Nov 9 at 13:53
This my third day since I'm using nginx.So you can find some mistakes in my configuration.I have socket.io in my app2 I read that its good practice to use upstream for app that running with sockets.
– Jor Khachatryan
Nov 9 at 14:05
add a comment |
up vote
-1
down vote
You probably want to use an upstream on your location /games
Check out this: https://serverfault.com/questions/823234/use-nginx-upstream-group-with-multiple-ports
edit: I just saw youre using upstream already. But your upstream is probably listening on port 443 and not on port 2053 since youre proxy passing to
I need to serve static files (jpg,mp3,gif etc.) from different static folders for different apps,but in one host.Thanks in any case))))))
– Jor Khachatryan
Nov 9 at 13:53
This my third day since I'm using nginx.So you can find some mistakes in my configuration.I have socket.io in my app2 I read that its good practice to use upstream for app that running with sockets.
– Jor Khachatryan
Nov 9 at 14:05
add a comment |
up vote
-1
down vote
up vote
-1
down vote
You probably want to use an upstream on your location /games
Check out this: https://serverfault.com/questions/823234/use-nginx-upstream-group-with-multiple-ports
edit: I just saw youre using upstream already. But your upstream is probably listening on port 443 and not on port 2053 since youre proxy passing to
You probably want to use an upstream on your location /games
Check out this: https://serverfault.com/questions/823234/use-nginx-upstream-group-with-multiple-ports
edit: I just saw youre using upstream already. But your upstream is probably listening on port 443 and not on port 2053 since youre proxy passing to
edited Nov 9 at 13:55
answered Nov 9 at 13:48
Oliver Franke
11
11
I need to serve static files (jpg,mp3,gif etc.) from different static folders for different apps,but in one host.Thanks in any case))))))
– Jor Khachatryan
Nov 9 at 13:53
This my third day since I'm using nginx.So you can find some mistakes in my configuration.I have socket.io in my app2 I read that its good practice to use upstream for app that running with sockets.
– Jor Khachatryan
Nov 9 at 14:05
add a comment |
I need to serve static files (jpg,mp3,gif etc.) from different static folders for different apps,but in one host.Thanks in any case))))))
– Jor Khachatryan
Nov 9 at 13:53
This my third day since I'm using nginx.So you can find some mistakes in my configuration.I have socket.io in my app2 I read that its good practice to use upstream for app that running with sockets.
– Jor Khachatryan
Nov 9 at 14:05
I need to serve static files (jpg,mp3,gif etc.) from different static folders for different apps,but in one host.Thanks in any case))))))
– Jor Khachatryan
Nov 9 at 13:53
I need to serve static files (jpg,mp3,gif etc.) from different static folders for different apps,but in one host.Thanks in any case))))))
– Jor Khachatryan
Nov 9 at 13:53
This my third day since I'm using nginx.So you can find some mistakes in my configuration.I have socket.io in my app2 I read that its good practice to use upstream for app that running with sockets.
– Jor Khachatryan
Nov 9 at 14:05
This my third day since I'm using nginx.So you can find some mistakes in my configuration.I have socket.io in my app2 I read that its good practice to use upstream for app that running with sockets.
– Jor Khachatryan
Nov 9 at 14:05
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53226894%2fhow-to-configure-nginx-for-two-static-folder%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
That is confusing. Given that would be possible: How do you expect nginx to decide what asset to deliver if there is a match in both roots?
– Dirk Lachowski
Nov 13 at 18:02
So if I have 2 different apps how I can use them under nginx?
– Jor Khachatryan
Nov 14 at 6:27