Skip to content

cannot curl to my own server using domain name #2982

@outranker

Description

@outranker

I am not sure if it worked before or not but recently I had to curl my own service using its proxy domain name. For example, I had app.example.com proxy set up and from the server I used curl app.example.com but I got connection refused error. I added 127.0.0.1 app.example.com to /etc/hosts file on my server and it started working properly again. I think I will have to add all of my domains to /etc/hosts file which is a bit cumbersome. Also it's a bummer that I cannot use wildcard in hosts file. I wonder if others also came across this situation as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions