Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

[FEATURE REQUEST] Support of multiple host and bind configuration for single serve block #33

Open
tglman opened this issue Feb 23, 2023 · 0 comments

Comments

@tglman
Copy link
Contributor

tglman commented Feb 23, 2023

Hi,

As today is not possible to configure multiple host name (or host alias) for a single server configuration, so the configuration need to be duplicated for all the cases, for example if you want to configure example.com and www.example.com the configuration need to be

server {
    listen 443
    root /var/www/html
    host example.com
    compress on
    ....
}

server {
    listen 443
    root /var/www/html
    host www.tglman.com
    compress on
    ....
}

here an example of my configuration: https://www.tglman.com/posts/new_host_for_the_blog_with_new_tools.html where i duplicate de configuration also for listen in ipv4 and ipv6.

Regards

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

No branches or pull requests

1 participant