LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   git Apache configuration (https://www.linuxquestions.org/questions/linux-software-2/git-apache-configuration-741813/)

kushalkoolwal 07-21-2009 07:12 PM

git Apache configuration
 
I have been trying to install git on my website hosted through bluehost. I was able to install the git binaries fine on my account however when I tried to configure gitweb repository on my website, I found the following in the README in the gitweb source directory:

Code:


Webserver configuration
-----------------------

If you want to have one URL for both gitweb and your http://
repositories, you can configure apache like this:

<VirtualHost *:80>
    ServerName git.example.org
    DocumentRoot /pub/git
    SetEnv        GITWEB_CONFIG        /etc/gitweb.conf
    RewriteEngine on
    # make the front page an internal rewrite to the gitweb script
    RewriteRule ^/$  /cgi-bin/gitweb.cgi
    # make access for "dumb clients" work
    RewriteRule ^/(.*\.git/(?!/?(HEAD|info|objects|refs)).*)?$ /cgi-bin/gitweb.cgi%{REQUEST_URI}  [L,PT]
</VirtualHost>

I am not sure where do I put these lines. Had it been my own local Linux system I could have su to root and added the above lines in /etc/apache/conf.d/git.conf but this is an account from bluehost website hosting company and I am not sure how do I access the apache configuration file.

Thanks


All times are GMT -5. The time now is 02:03 PM.