File gitea-apache-vhost.conf of Package gitea
# gitea under /git and with ssl
#
# Change following in /etc/gitea/conf/app.ini
#
# You have two options
#
# First option:
#
# - ROOT_URL to http://<your_server>.<your_domain>/git/
#
#
# Second option:
#
# - PROTOCOL to https
# - ROOT_URL to https://<your_server>.<your_domain>/git/
#
# Uncomment below rows and change <your_server>.<your_domain>
# to your server and domain.
#<VirtualHost *:80>
# ...
# <Proxy *>
# Order allow,deny
# Allow from all
# </Proxy>
# AllowEncodedSlashes NoDecode
# # Note: no trailing slash after either /git or port
# ProxyPass /git http://localhost:3000 nocanon
# ProxyPassReverse /git http://localhost:3000
#</VirtualHost>
# Then set [server] ROOT_URL = http://git.example.com/git/ in your configuration.
# Note: The following Apache HTTPD mods must be enabled: proxy, proxy_http