Gogs: Apache Reverse proxy page 404

Created on 11 Apr 2015  路  1Comment  路  Source: gogs/gogs

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

Most helpful comment

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

>All comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Lord0 picture Lord0  路  3Comments

fromiuan picture fromiuan  路  3Comments

rugk picture rugk  路  3Comments

ozzi- picture ozzi-  路  3Comments

Cysioland picture Cysioland  路  3Comments