# ENSURE YOU SET YOUR ROOT_URL CORRECTLY AFTER MAKING CHANGES # Virtual Host Examples # # ServerName git.example.com # ServerAlias git.example.com # ProxyPreserveHost On # ProxyRequests Off # AllowEncodedSlashes NoDecode # ProxyPass / http://localhost:3000/ nocanon # ProxyPassReverse / http://localhost:3000/ nocanon # # # # Protocols h2 http/1.1 # SSLEngine On # ServerName git.example.com # ServerAlias git.example.com # ProxyPreserveHost On # ProxyRequests Off # AllowEncodedSlashes NoDecode # ProxyPass / http://localhost:3000/ nocanon # ProxyPassReverse / http://localhost:3000/ nocanon # # This is if you're using sockets # # SSLEngine on # ServerName git.example.com # DocumentRoot /var/www/html # # ProxyPass unix:/run/forgejo/forgejo.socket|http://127.0.0.1/ # ProxyPassReverse unix:/run/forgejo/forgejo.socket|http://127.0.0.1/ # # # Examples of using /git # # Require all granted # ProxyPass http://localhost:3000 # ProxyPassReverse http://localhost:3000 # # # Require all granted # ProxyPass https://some.git.com:3000 # ProxyPassReverse https://some.git.com:3000 #