[GH-ISSUE #1613] Nginx multiple domains #1268

Closed
opened 2026-02-27 11:16:12 +03:00 by kerem · 3 comments
Owner

Originally created by @pappastech on GitHub (Nov 11, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1613

Impacted versions

Modoboa: 1.12.2
installer used: Yes
Webserver: Nginx

Steps to reproduce

N/A

Current behavior

Admin panel is only available at the base domain. If I install modoboa using domain1.com, I can't simply redirect domain2.com to the same IP and have it bring up the admin interface because Nginx throws an error.

Expected behavior

Can Nginx be configured to respond to domain1.com, domain2.com, domainn.com etc?

Video/Screenshot link (optional)

Originally created by @pappastech on GitHub (Nov 11, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1613 # Impacted versions Modoboa: 1.12.2 installer used: Yes Webserver: Nginx # Steps to reproduce N/A # Current behavior Admin panel is only available at the base domain. If I install modoboa using domain1.com, I can't simply redirect domain2.com to the same IP and have it bring up the admin interface because Nginx throws an error. # Expected behavior Can Nginx be configured to respond to domain1.com, domain2.com, domainn.com etc? # Video/Screenshot link (optional)
kerem closed this issue 2026-02-27 11:16:13 +03:00
Author
Owner

@tonioo commented on GitHub (Nov 12, 2018):

You also need to complete the ALLOWED_HOSTS variable inside settings.py to allow every hostname you want to support.

<!-- gh-comment-id:437787431 --> @tonioo commented on GitHub (Nov 12, 2018): You also need to complete the ALLOWED_HOSTS variable inside settings.py to allow every hostname you want to support.
Author
Owner

@pappastech commented on GitHub (Nov 12, 2018):

This doesn't answer the original question, but I do appreciate the insight. If this isn't the correct forum, I'm happy to take the question elsewhere; I figured however, that someone else running modoboa might know or want to know the answer to this.

Thanks.

<!-- gh-comment-id:437843073 --> @pappastech commented on GitHub (Nov 12, 2018): This doesn't answer the original question, but I do appreciate the insight. If this isn't the correct forum, I'm happy to take the question elsewhere; I figured however, that someone else running modoboa might know or want to know the answer to this. Thanks.
Author
Owner

@tonioo commented on GitHub (Nov 12, 2018):

@pappastech you just need to add aliases to nginx configuration or copy vhost configuration to create a new one, in addition to what I said earlier.

<!-- gh-comment-id:437965963 --> @tonioo commented on GitHub (Nov 12, 2018): @pappastech you just need to add aliases to nginx configuration or copy vhost configuration to create a new one, in addition to what I said earlier.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1268
No description provided.