I have the following nginx.conf
http {
root /home/aissy/Documents/web;
access_log /home/aissy/Documents/web/access.log;
error_log /home/aissy/Documents/web/error.log;
autoindex on;
server {
listen localhost:88;
location / {root /;}
location /exp/ {
root /test;
}
location /togoogle/ {
proxy_pass https://www.google.com;
}
}
}
events {}
for prefix exp
, i want to access test
and for prefix togoogle
, i want to redirect to google.com
, yet
when I request such that
curl localhost:88/togoogle && curl localhost:88/exp
I get 404
everywhere.