Gitlab Pages 404 "unmatched_route"

Hello evryone,

I’m using Omnibus CE 15.4 self-managed.
I want to use Gitlab Page but all i got is a 404 not found error.

What i have done to setup the page:

  1. Edit the gitlab.rb with this information:
pages_external_url "https://page.my.domain.com"
gitlab_pages['enable'] = true
  1. Add the cert page.key and crt in /etc/gitlab/ssl

page.my.domain.com.key
page.my.domain.com.crt

  1. Add a directory public in my repository with an index.html file

  2. Add the basic gitlab-ci example as follow

stages:
    - pages

pages:
  stage: pages
  extends: 
    - .my_builder  
  script:
    - echo "Push page"
artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

I got the 2 jobs pages and deploy, with this last log

Uploading artifacts...
public: found 6 matching files
Uploading artifacts to coordinator... ok id=1027 responseStatus=201 Created token=XXXXX
Job succeeded

I look at my Settings in Gitlab, and i got the section Page, great !
I click on the link https://myuser.page.my.domain.com/myprojectname

And all i got is a big 404 error in the middle of the page.

I go to the server to check the log

gitlab-ctl tail | grep page

Started GET "/myprojectname" for XXX.XX.XXX.XX at 2022-11-16 10:42:14 +0000
  Parameters: {"unmatched_route"=>"myprojectname"}

{"method":"GET","path":"/myprojectname","format":"html","controller":"ApplicationController","action":"route_not_found","status":404,"time":"2022-11-16T10:42:14.938Z",
"params":[{"key":"unmatched_route","value":"myprojectname"}],

etc ...

Did i miss something to configure the route ? In the documentation it says the route is auto configured, am i wrong ?

Thanks for help !

Vincent,
Best regards

Any tech from Gitlab to help please ?

Best regards,
Vincent

I should had the port in the external_url in the gitlab.rb and add the port to my docker-compose, now evrything works great.

Thanks.