diff --git a/examples/h2o.conf b/examples/h2o.conf index f031b48b0..20594cfe3 100644 --- a/examples/h2o.conf +++ b/examples/h2o.conf @@ -4,6 +4,6 @@ hosts: "*": paths: /: - proxy.reverse.url: "http://[unix:/home/hydro/hydro.sock]" + proxy.reverse.url: "http://localhost:8888" proxy.preserve-host: ON proxy.websocket: ON \ No newline at end of file diff --git a/examples/nginx.conf b/examples/nginx.conf index f42b9c3fb..de40368bf 100644 --- a/examples/nginx.conf +++ b/examples/nginx.conf @@ -8,10 +8,11 @@ server { } location @proxy_to_app { - proxy_pass http://unix:/home/hydro/hydro.sock; + proxy_pass http://localhost:8888; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; + proxy_set_header X-Real-Host $host; proxy_set_header X-Forwarded-For $remote_addr; } } \ No newline at end of file