Esta implementación está hecha con Apache httd
En el archivo app.ini hemos editado la siguiente linea
----- ROOT_URL = http://staging.domain.com/gitea -----
Esto con el fin de que sea Apache quien redirija las peticiones.
Veamos como queda el default.conf de Apache
<VirtualHost *:80> ServerName staging.domain.com ServerAlias staging.domain.com Alias "/inicio" "/home/usertest/public_html/home" ProxyRequests Off ProxyPreserveHost On AllowEncodedSlashes NoDecode ProxyPass /gitea http://domain.com:3001 nocanon DocumentRoot /home/usertest/public_html ErrorLog /home/usertest/public_html/logs/error.log CustomLog /home/usertest/public_html/logs/requests.log combined </VirtualHost>
Recarguemos los httpd
$ sudo systemctl reload httpd
Con esta configuración ya podemos acceder a:
There was an error while loading. Please reload this page.