How do I get nginx to ignore requests on http://127.0.0.1/
but hand out from my html directory on http://127.0.0.1/somename
this will also need to be the same for the proxy for /data/
I have tried the below and only get a 404.
server {
listen 80;
server_name localhost;
location / {
#Do I need something in here regardless?
}
location /somename {
root ../html;
index index.html index.htm;
}
#reverse proxy for ie support
#
location /somename/data {
proxy_pass http://localhost:8080/data/;
proxy_set_header host localhost;
}
# redirect error pages to the static pages /50x.html /40x.html
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root ../html;
}
location = /404.html {
root ../html;
}
}