Fresh install of gitlab tries to redirect me to example.org/users.sign_in

the logs are clear:

==> /var/log/gitlab/gitlab-rails/production_json.log <==
{"method":"GET","path":"/","format":"html","controller":"RootController","action":"index","status":302,"location":"http://example.org/users/sign_in","time":"2024-02-08T11:33:20.514Z","params":[],"correlation_id":"147fefe7-1f79-4b1b-894b-2ca67787ca70","meta.caller_id":"RootController#index","meta.feature_category":"groups_and_projects","meta.client_id":"ip/","request_urgency":"low","target_duration_s":5,"redis_calls":13,"redis_duration_s":0.00187,"redis_read_bytes":2581,"redis_write_bytes":798,"redis_cache_calls":13,"redis_cache_duration_s":0.00187,"redis_cache_read_bytes":2581,"redis_cache_write_bytes":798,"db_count":0,"db_write_count":0,"db_cached_count":0,"db_replica_count":0,"db_primary_count":0,"db_main_count":0,"db_ci_count":0,"db_main_replica_count":0,"db_ci_replica_count":0,"db_replica_cached_count":0,"db_primary_cached_count":0,"db_main_cached_count":0,"db_ci_cached_count":0,"db_main_replica_cached_count":0,"db_ci_replica_cached_count":0,"db_replica_wal_count":0,"db_primary_wal_count":0,"db_main_wal_count":0,"db_ci_wal_count":0,"db_main_replica_wal_count":0,"db_ci_replica_wal_count":0,"db_replica_wal_cached_count":0,"db_primary_wal_cached_count":0,"db_main_wal_cached_count":0,"db_ci_wal_cached_count":0,"db_main_replica_wal_cached_count":0,"db_ci_replica_wal_cached_count":0,"db_replica_duration_s":0.0,"db_primary_duration_s":0.0,"db_main_duration_s":0.0,"db_ci_duration_s":0.0,"db_main_replica_duration_s":0.0,"db_ci_replica_duration_s":0.0,"cpu_s":0.030762,"mem_objects":26350,"mem_bytes":2733720,"mem_mallocs":10197,"mem_total_bytes":3787720,"pid":3905290,"worker_id":"puma_master","rate_limiting_gates":[],"db_duration_s":0.0,"view_duration_s":0.0,"duration_s":0.01486}

I have no idea what to do, nowhere in the config is example.org mentioned…

What did you configure in /etc/gitlab/gitlab.rb for the external_url? Sounds to me the problem is it hasn’t been configured properly. None of my installs have ever redirected to example.org.

1 Like

I configured the correct domain, in my case a subdomain.
But to be honest, I’m trying to get gitlab running behind apache & ispconfig, so the issue is probably connected to that part.
Somehow gitlab reads this ‘example.org’ from the server, where it is set as dummy configuration by apache or ispconfig. But I couldn’t guess where, or where I can overwrite it…

Depending on the webserver it’s most likely the vhost configuration. You would need to check that, and figure out what the server name option has been set as well as the reverse proxy configuration which is forwarding from Apache to Gitlab.

This link should also help in relation to other config options you need to set for a reverse proxy behind apache setup: NGINX settings | GitLab