You are not logged in.
On a computer, I have a bare repository which I can access from another computer with both protocols git and ssh, but with http it fails. Where to copy my directory? The links:
ls -s /my/repo /var/www/html/repo-link
ls -s /my/repo /var/www/git/repo-linkas in Red Hat and Debian based distributions won't work
Last edited by thomasbb (2021-08-10 22:17:01)
Offline
Hi,
when you check the wiki page for apache it points out, that the DocumentRoot should be /srv/http, whilst some distros (like debian) let it point to /var/www.
https://wiki.archlinux.org/title/Apache … figuration
You should check the configuration file /etc/httpd/conf/httpd.conf and check the configuration, which points to the DocumentRoot of your server (depending on the configuration which is active for you).
edit: also in your first ln command there may be a typo (htm => html ?)
Last edited by Shawn8901 (2021-08-10 17:57:06)
Offline
Hi,
It was html in my history but I made a bad copy-paste in the post. It's corrected
So I tried both links:
sudo ln -s /tmp/my-remote-git-repo /srv/http/git/my-remote-git-repo
sudo ln -s /tmp/my-remote-git-repo /srv/http/my-remote-git-repobut the commands
git clone https://127.0.0.1/my-remote-git-repo my-remote-git-repo-2
git clone https://127.0.0.1:/my-remote-git-repo my-remote-git-repo-2answer
Cloning into 'my-remote-git-repo-2'...
fatal: unable to access 'https://127.0.0.1/my-remote-git-repo/': Failed to connect to 127.0.0.1 port 443 after 0 ms: Connection refusedLast edited by thomasbb (2021-08-10 19:57:29)
Offline
There doesn't seem to be a listener on port 443. Did you set up https at all? How?
Offline
If I call http instead of https, the same happens. And for the httpd service, I just installed the apache package without further configuration
Last edited by thomasbb (2021-08-10 21:00:42)
Offline
Check your Apache config. IIRC it doesn't follow symlinks without extra configuration.
Offline
If I make a copy of the repository under either /srv/http or /srv/http/git, it still doesn't work it works for the http protocol (and not for the https protocol).
Solved, thank you for your help
Last edited by thomasbb (2021-08-10 22:14:47)
Offline