Hi! I couldn figure this out until now :(
I want lol.gijoe.com to go to the root and every other paths like lol.gijoe.com/pathx or lol.gijoe.com/pathy/pathytz to go to somewhere else.
I found only solutions the other way around for specific paths /path and everything else / goes to index.
Do i have to specifiy each path speratatly?
Below example only does the proxy pass even though it should hit the home.
suggestions?
server {
server_name lol.gijoe.com
listen 80;
location = / {
root /home/www/;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass 172.0.0.0:1;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_max_temp_file_size 0;
}
}
Thank you very much!!
I want lol.gijoe.com to go to the root and every other paths like lol.gijoe.com/pathx or lol.gijoe.com/pathy/pathytz to go to somewhere else.
I found only solutions the other way around for specific paths /path and everything else / goes to index.
Do i have to specifiy each path speratatly?
Below example only does the proxy pass even though it should hit the home.
suggestions?
server {
server_name lol.gijoe.com
listen 80;
location = / {
root /home/www/;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass 172.0.0.0:1;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_max_temp_file_size 0;
}
}
Thank you very much!!