Skip to content

Getting 404 on anything but localhost #1542

@wytten

Description

@wytten

Strange behavior from spring boot app when run as a windows service created by cygrunsrv.
URL that uses 'localhost' works, but these other supposedly equivalent variations all fail with a 404:
http://(hostname):8080/page.html
http://(hostip):8080/page.html
http://127.0.0.1:8080/page.html

When I run the app with 'java -jar ...' manually, all of these URL's work but when run as a service,
only the 'localhost' variation works. The definition of the service is nothing more than to run the same 'java -jar ...' command.

Perhaps this has nothing to do directly with spring-boot, if so my apologies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions