Skip to content

Debian 11 Üzerinde Nginx ile HTTP Git Sunucusu Nas?l Kurulur

Netcloud24
Cloud Infrastructure Expert
NetCloud24 Expert Guides Open the dedicated video page

Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud. Cloud and VPS expertise, security, performance, and step-by-step tutorials. Learn, deploy, and keep building with NetCloud24.

 

Debian 11 Üzerinde Nginx ile HTTP Git Sunucusu Nas?l Kurulur

Debian 11 üzerinde çal??an sunucunuza HTTP Git sunucusu kurmak için bu ad?m ad?m k?lavuzu izleyin.

Ad?m 1: Sistemi Güncelleyin

Yaz?l?m yüklemeden önce sistemin paketlerini güncellemek önemlidir:

sudo apt update && sudo apt upgrade -y

Ad?m 2: Gerekli Paketleri Yükleyin

Git ve Nginx’i yükleyin:

sudo apt install -y git nginx

Ad?m 3: Git Reposu Olu?turun

Git reposu için bir klasör olu?turun:

sudo mkdir -p /var/git/myrepo.git
cd /var/git/myrepo.git
sudo git init --bare

Ad?m 4: Nginx’i Yap?land?r?n

Git sunucunuz için yeni bir Nginx yap?land?rma dosyas? olu?turun:

sudo nano /etc/nginx/sites-available/git

A?a??daki yap?land?rmay? ekleyin:

server {
    listen 80;
    server_name your_domain.com;  # Alan ad?n?z? de?i?tirin

    location / {
        root /var/git;
        index index.html;
    }

    location ~ \.git {
        deny all;
    }

    location ~ ^/myrepo.git {
        auth_basic "Git Eri?imi";
        auth_basic_user_file /etc/nginx/.htpasswd;
        proxy_pass http://localhost:8080;
    }
}

Yap?land?rmay? etkinle?tirin:

Visual overview of Debian 11 Üzerinde Nginx ile HTTP Git Sunucusu Nas?l Kurulur
Visual overview: Debian 11 Üzerinde Nginx ile HTTP Git Sunucusu Nas?l Kurulur
sudo ln -s /etc/nginx/sites-available/git /etc/nginx/sites-enabled/

Ad?m 5: Temel Kimlik Do?rulamas?n? Yap?land?r?n

Lütfen ?ifre dosyas?n? olu?turmak için Apache araçlar?n? yükleyin:

sudo apt install -y apache2-utils

?ifre dosyas?n? olu?turun ve bir kullan?c? ekleyin:

sudo htpasswd -c /etc/nginx/.htpasswd username

Ad?m 6: Nginx Yap?land?rmas?n? Test Edin

Nginx yap?land?rmas?nda hata olup olmad???n? kontrol edin:

sudo nginx -t

Ad?m 7: Nginx’i Yeniden Ba?lat?n

Test ba?ar?l?ysa, Nginx’i yeniden ba?lat?n:

sudo systemctl restart nginx

Ad?m 8: Reposu Klonlay?n

Art?k a?a??daki komutla reposu klonlayabilirsiniz:

git clone http://your_domain.com/myrepo.git

Sonuç

Debian 11 üzerinde çal??an sunucunuza Nginx ile HTTP Git sunucusunu ba?ar?yla kurdunuz. Art?k Git reposunuzu HTTP üzerinden yönetebilirsiniz!

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Key topics covered in Debian 11 Üzerinde Nginx ile HTTP Git Sunucusu Nas?l Kurulur
Key topics covered in this NetCloud24 guide.

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Practical checklist for Debian 11 Üzerinde Nginx ile HTTP Git Sunucusu Nas?l Kurulur
Practical checklist for applying the guidance in this article.

Windows RDS (Remote Desktop Services)

Windows VPS

Debian 11 Üzerinde Nginx ile HTTP Git Sunucusu Nas?l Kurulur
Debian 11 Üzerinde Nginx ile HTTP Git Sunucusu Nas?l Kurulur
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.