Multiple domain name same instance

41 views
Skip to first unread message

Sebastian Auditore

unread,
Feb 15, 2026, 9:27:06 PM (5 days ago) Feb 15
to Repo and Gerrit Discussion
Hi,

Is it possible to serve the same Gerrit instance with multiple domain name, eg:

1. gerrit.example.com (primary)
2. gerrit.example.org (another business entity)

My Gerrit instance is running on docker and using Nginx as reverse proxy. canonicalWebUrl set to gerrit.example.com.

I had set another vhost in Nginx to access gerrit.example.org, but once after login, it will redirect to gerrit.example.com

Thank you.

Seb

Fabio Ponciroli

unread,
Feb 16, 2026, 3:37:51 AM (5 days ago) Feb 16
to Sebastian Auditore, Repo and Gerrit Discussion
Hi Sebastian,

Did you have a look at the visrtualhost plugin [1]?

I think this is what you are after.

Thanks,
Ponch


--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/22b5f6cb-c7c6-4225-b660-7ba8affcec32n%40googlegroups.com.

Sebastian Auditore

unread,
Feb 19, 2026, 11:19:46 PM (2 days ago) Feb 19
to Repo and Gerrit Discussion
Hi Ponch,

Thank you for pointing the direction. It should fit my need. But Gerrit failed to start up as the error shown that it shared the same PermissionBackend with git-refs-filter. Guess I have to find another way.

com.google.gerrit.pgm.Daemon : Unable to start daemon
gerrit_gerrit.1.saodc0epjok7@ubuntu    | com.google.inject.CreationException: Unable to create injector, see the following errors:
gerrit_gerrit.1.saodc0epjok7@ubuntu    |
gerrit_gerrit.1.saodc0epjok7@ubuntu    | 1) [Guice/BindingAlreadySet]: PermissionBackend was bound multiple times.
gerrit_gerrit.1.saodc0epjok7@ubuntu    |
gerrit_gerrit.1.saodc0epjok7@ubuntu    | Bound at:
gerrit_gerrit.1.saodc0epjok7@ubuntu    | 1  : RefsFilterModule.configure(RefsFilterModule.java:38)
gerrit_gerrit.1.saodc0epjok7@ubuntu    | 2  : GuiceModule.configure(GuiceModule.java:32)
gerrit_gerrit.1.saodc0epjok7@ubuntu    |
gerrit_gerrit.1.saodc0epjok7@ubuntu    | Learn more:
gerrit_gerrit.1.saodc0epjok7@ubuntu    |   https://github.com/google/guice/wiki/BINDING_ALREADY_SET
gerrit_gerrit.1.saodc0epjok7@ubuntu    |
gerrit_gerrit.1.saodc0epjok7@ubuntu    | 1 error

Regards,
Seb

On Monday, February 16, 2026 at 4:37:51 PM UTC+8 Fabio Ponciroli wrote:
Hi Sebastian,

Did you have a look at the visrtualhost plugin [1]?

I think this is what you are after.

Thanks,
Ponch


Reply all
Reply to author
Forward
0 new messages