ThomasRedstone icon

Apache 2.4 Git HTTP Backend Configuration

ThomasRedstone | PRO | 06/10/14 09:40:18 AM UTC | 0 ⭐ | 10839 👁️ | Never ⏰ | []
autoconf |

2.32 KB

|

None

|

0 👍

/

0 👎

<VirtualHost *:8080>
     ServerName git.example.com
     Options +ExecCGI +FollowSymLinks
     AddHandler cgi-script cgi
     DocumentRoot /var/web/example.com/
     RewriteEngine On
     AcceptPathInfo On
     ErrorLog /var/log/apache2/git.example.com_error.log
     CustomLog /var/log/apache2/git.example.com_access.log combined
     SetEnv GIT_PROJECT_ROOT /srv/git
     SetEnv GIT_HTTP_EXPORT_ALL
     SetE       nv GITWEB_PROJECTROOT /srv/git
     SetEnv GITWEB_CONFIG /etc/gitweb.conf
     SetEnv GIT_HTTP_BACKEND "/usr/lib/git-core/git-http-backend"
     ProxyPass /git/ !
     ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
     Alias /gitweb /usr/share/gitweb
     <Directory /usr/share/gitweb>
          Options +ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
          AddHandler perl-script .cgi
          PerlResponseHandler ModPerl::Registry
          PerlOptions +ParseHeaders
          DirectoryIndex gitweb.cgi
     </Directory>
     <Directory /var/web/example.com>
          Require all granted
     </Directory>
     <Directory /srv/git>
          Options +Indexes
          Require all granted
     </Directory>
     <Location /git>
          AddHandler mod_python .py
          PythonAccessHandler /opt/env-allura/src/allura/scripts/ApacheAccessHandler.py
          AuthType Basic
          #Realm/Title of login dialog
          AuthName "RedstoneTechnology GIT Repository"
          AuthBasicAuthoritative off
          # Change this path if needed:
          PythonOption ALLURA_VIRTUALENV /opt/env-allura
          # This routes back to the allura webapp, port 8080 if running with paster server (~/start_allura)
          # In a production environment, run allura with a real WSGI server, and
          # change the IP address and port number as appropriate.
          # And use https if possible, since the username and password are otherwise
          # sent in the clear to Allura.
          PythonOption ALLURA_AUTH_URL http://127.0.0.1:8081/auth/do_login
          PythonOption ALLURA_PERM_URL http://127.0.0.1:8081/auth/repo_permissions
          #AuthUserFile /dev/null
          Require valid-user
     </Location>
     <Directory "/usr/lib/git-core*">
         Require all granted
         SetHandler cgi-script
         Options +ExecCGI +FollowSymLinks
     </Directory>
</VirtualHost>

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎