Thread (19 messages) flat view 19 messages, 8 authors, 2016-06-15

Re: git-clone works with ssh but not with http/https/git

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:44:49

On Tue, 24 Jun 2008, Anton Gladkov wrote:
On Tue, Jun 24, 2008 at 05:42:14PM +0400, Erez Zilber wrote:
quoted
I guess that the problem is that no proper mapping exists. That's why
I see the following in /var/log/httpd/error_log:

[Tue Jun 24 16:31:52 2008] [error] [client 172.16.0.7] File does not
exist: /var/www/html/pub

What do I need to add in /etc/httpd/conf.d/ in order to set the
mapping to /pub/git instead of /var/www/html/pub ? Is there an example
that shows how to map?
IMO the simplest way is to create a symlink 'pub' in /var/www/html directory
pointing to /pub and to add 'Options FollowSymLinks' to <Directory /> in httpd.conf.
Another solution (not necessary simplest, but it might be preferred
from the security point of view) is to do some URL rewriting / redirection.
See your web server documentation for details...

-- 
Jakub Narebski
Poland
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help