Skip to content

Question: subdomains? #387

Open
Open
@quillaja

Description

@quillaja

Can sniproxy route subdomains to different addresses? I did attempt to test it and I think my requests to the subdomain were going to the incorrect server (eg sub1.mydomain.net went to 127.0.0.1:8000 mydomain.net), but it's possible I had something else with DNS misconfigured.

Partial config for example:

listen 80 {
	proto http
	table http_hosts

	access_log {
		filename /var/log/sniproxy/http_access.log
		priority notice
	}
}

table http_hosts {
	mydomain.net 127.0.0.1:8000
	sub1.mydomain.net 127.0.0.1:8001
	sub2.mydomain.net 127.0.0.1:8002
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions