When from outside, the user accesses https://PublicName/git, I get a poorly formatted page
Also, when the uses clicks “Sign in”, the URL that link targets is
https://PublicName/user/login?redirect_to=
This is wrong because there should ‘/git’ in it.
I think that this configuration is not supported; AFAIK Gitea requires / as the root path. What I’d suggest is to set up a server alias and redirect over there. For example:
server: dev.company.com
intended path: dev.company.com/git
actual path: git.company.com
git.company.com points to the same server as dev.company.com, and uses the same certificate, which contains the git alias. Anyone accessing dev.company.com/git should be permanently redirected over git.company.com.
This of course requires manual administration of the server’s certificate to include the alias, but it’s supported by Let’s Encrypt if that’s what you’re using.
This of course requires manual administration of the server’s certificate to include the alias, but it’s supported by Let’s Encrypt if that’s what you’re using.
I do use Let’s Encrypt, how do I update the certificate then?
Yes i did, that’s how I configured my apache.
However, I desired to access gitea from outside home, and from inside home with 2 different URLs.
That’s what [guillep2k] explained was not quite possible
and I am trying to pursue his solution