mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-29 10:55:54 +03:00
[GH-ISSUE #1613] Nginx multiple domains #1268
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1268
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)
@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.
@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.
@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.