Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supplied .htaccess doesn't work when installed outside of DocRoot #6

Closed
wdccdw opened this issue May 22, 2012 · 15 comments
Closed

supplied .htaccess doesn't work when installed outside of DocRoot #6

wdccdw opened this issue May 22, 2012 · 15 comments
Labels

Comments

@wdccdw
Copy link

@wdccdw wdccdw commented May 22, 2012

When I install gitlist outside of the DocumentRoot, using an Alias, the supplied .htaccess results in a 404 for everything that is not a file. It works if I use the following RewriteRule instead:

RewriteRule ^ /gitlist/index.php [L]

@kulbirsaini
Copy link
Contributor

@kulbirsaini kulbirsaini commented May 23, 2012

Can you add these lines to your Apache config and try?

Alias /gitlist /var/www/gitlist/
<Directory /var/www/gitlist>
  AllowOverride All
</Directory>
@wdccdw
Copy link
Author

@wdccdw wdccdw commented May 23, 2012

Alas, I already had the above in my apache config.

@klaussilveira
Copy link
Owner

@klaussilveira klaussilveira commented May 23, 2012

That's strange. Are you using default Apache website configuration? Where is GitList located? Can you provide a copy of your conf?

@xmganesh
Copy link

@xmganesh xmganesh commented Jun 1, 2012

Ok that was fixed .
But a new one..
on browsing the repo I get ""Oops! fatal: Not a valid object name master""

@klaussilveira
Copy link
Owner

@klaussilveira klaussilveira commented Jun 1, 2012

Is this a bare or non-bare repository? Is it private or public? If public, could you provide it for testing purposes?

@nifisher
Copy link

@nifisher nifisher commented Jun 1, 2012

Does the apache user have read access to that folder and all of it's sub folders?

@xmganesh
Copy link

@xmganesh xmganesh commented Jun 2, 2012

Hi Klaus,

We are actually testing whether it can be successsfully done. So the site
is not public.
Testing on some Virtual Machines.
By the way, how do you sujjest to setup the git server.?
We have setup git server with gitosis.
Will the GitList work with it.. Or is the error I am getting due to
the incompatability..???

Thanks and Regards

@klaussilveira
Copy link
Owner

@klaussilveira klaussilveira commented Jun 2, 2012

I have never tested GitList with gitosis, but it shouldn't be incompatible since GitList is just a reader. It should work just fine with gitosis and gitolite (unless i'm doing something very wrong, which is possible).

Essentially, Apache's www-data user must have read-access to the folder where your repositories are located and, of course, your repositories as well.

@nifisher
Copy link

@nifisher nifisher commented Jun 3, 2012

I'm running it with Gitolite, sir. Seems to work fine. I'm guessing that you are just going in via the file system, so Gitolite doesn't even come into play (as near as I can tell).

@xmganesh
Copy link

@xmganesh xmganesh commented Jun 4, 2012

just awesome...
except that some times while trying to view the commit the page just shows on loading....
Anyway JUST loved it...
just like the github.....
HATS OFF TO You klaussilveira .. !!!

@xmganesh
Copy link

@xmganesh xmganesh commented Jun 4, 2012

Hi Klaus,

Added mailed some modification sujjestions to contact@klaussilveira.com

thanks

@myano
Copy link
Contributor

@myano myano commented Jun 25, 2012

@xmganesh how did you end up fixing this?

@xmganesh
Copy link

@xmganesh xmganesh commented Jun 26, 2012

@myano just check whether your repo directories have 'exec' permission.!!

@JonnyPower
Copy link

@JonnyPower JonnyPower commented Jul 16, 2012

Nice, that rewrite rule solved it for me.

@xmganesh
Copy link

@xmganesh xmganesh commented Aug 14, 2012

(y)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants