Hy,
I've installed latest gogs 6.1 on centos7 and make it run perfectly on the machine with service and port.
From now, I would like to reach this machine from outside web behind an apache reverse proxy.
here is my apache conf :
ServerName domain.tld
ProxyRequests off
ProxyPreserveHost On
ProxyPass /git-service http://myinternalip:3055/
ProxyPassReverse /git-service http://myinternalip:3055/
<Location /git-service>
Order allow,deny
Allow from all
</Location>
My app.ini looks like this :
[server]
PROTOCOL = http
DOMAIN = domain.tld
#ROOT_URL = http://myinternalip:3055/
ROOT_URL = http://domain.tld/git-service/
HTTP_ADDR = myinternalip
HTTP_PORT = 3055
1 - When I reache the home page with http://domain.tld/git-service (without the / at the end) I have a correct page
2 - but when I try to reach login page or explore, etc... I have a gogs 404 error (not the apache one, the gogs one).
In the logs I have this :
2015/04/11 14:35:48 [home.go:179 Profile()] [E] GetUserByName: User does not exist
I tried many options without success so I think it could be a bug.
Anyway any advice/tips would be appreciated!
regards
Well,
I turned my apache conf into this :
ServerName domain.tld
ProxyPass /git-service http://myinternalip:3055
ProxyPassReverse /git-service http://myinternalip:3055
<Location /git-service>
Order allow,deny
Allow from all
</Location>
and it works now
Most helpful comment
Well,
I turned my apache conf into this :
and it works now