Gitlab Pages Problem

Hello Can you help me to fix my pages.

Here’s the setup

my gitlab is installed on docker and the port is 30002:80 and 30003:443 im using apache to reverse proxy the gitlab.example.com to localhost:30002

this is my reverse proxy rule

<IfModule mod_proxy.c>
    ProxyRequests Off
    SSLProxyEngine on
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyCheckPeerExpire off
    
    RewriteEngine on
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
    RewriteRule .* [https://localhost:30003%{REQUEST_URI}](https://localhost:30003%%7BREQUEST_URI%7D) [P,QSA]
    
    ProxyPass / https://localhost:30003/
    ProxyPassReverse / https://localhost:30003/
</IfModule>

I can access user.gitlab.example.com/project-name but when accessing the user.gitlab.example.com/project-name. it will make me login again saying “You need to sign in or sign up before continuing.”. I already make it for public.

i also put A Record to my dns manager *.gitlab.example.com




As mentioned in the docs domain for GitLab pages cannot be the same domain or subdomain of GitLab instance domain.

So if your GitLab is on gitlab.example.com the GitLab pages cannot be on user.gitlab.example.com.

Still not working.
i tried on my new domain.
i did this still not working.

external_url "http://gitlab.example.com" # external_url here is only for reference
pages_external_url "http://pages.example.com" # not a subdomain of external_url