Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding external www yields HTTP 301 ./ #62

Open
uabhabm opened this issue Jul 9, 2022 · 2 comments
Open

Adding external www yields HTTP 301 ./ #62

uabhabm opened this issue Jul 9, 2022 · 2 comments

Comments

@uabhabm
Copy link

uabhabm commented Jul 9, 2022

I try to start client-application-0.0.6 on a windows workstation.
I adjust config.yaml and point to it at startup.

ui:
  enabled: true
  directory: "/c/Users/habj/xr/ndu-web-gui/dist/ndu-web-gui"

Whwn accessing index.html (available in directory above) I expect to download .html file (HTTP status 200) but get HTTP 301, location ./ (using curl).

Any idea on what to do to enable my web UI service?

$ curl -v http://localhost:8080/index.html

  • Trying 127.0.0.1:8080...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to localhost (127.0.0.1) port 8080 (#0)

GET /index.html HTTP/1.1
Host: localhost:8080
User-Agent: curl/7.83.0
Accept: /

  • Mark bundle as not supporting multiuse
    < HTTP/1.1 301 Moved Permanently
    < Location: ./
    < Date: Sat, 09 Jul 2022 14:49:39 GMT
    < Content-Length: 0
    <
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  • Connection #0 to host localhost left intact
@uabhabm
Copy link
Author

uabhabm commented Jul 9, 2022

directory = directory: "c:\Users\habj\xr\ndu-web-gui\dist\ndu-web-gui"
works on windows.

@uabhabm
Copy link
Author

uabhabm commented Jul 9, 2022

Actually double slashed are needed in the config.yaml file ... c:\\Users\\habj\\xr\\ndu-web-gui\\dist\\ndu-web-gui", UTF-8 encoding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant