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:
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
Windows VPS UK
Windows VPS
VPS Windows
Serwer VPS Windows
VPS Windows Deutschland
Windows VPS Hosting
VPS Windows España
Windows VPS Nederland
VPS Windows Italia
VPS Windows Portugal
VPS Windows Россия
VPS Windows Украина
VPS Windows 日本
VPS Windows Sverige
VPS Windows Norge
VPS Windows عربى
VPS Windows Türkiye
Remote Desktop Services (RDS)
RDS CAL (Client Access License)
Remote Desktop VPS
Keywords: windows vps uk, windows vps, uk windows vps, windows vps hosting uk, vps windows server, uk vps windows, vps windows, servidor vps windows, vps uk windows, vps with windows, virtual private server windows, windows virtual private server, windows vps server uk, vps for windows, servidores vps windows, vps windows uk, windows vps hosting, vps windows hosting, windows vps server, windows virtual private servers, vps on windows, vps windows servers, cheap windows vps uk, windowsvps, windows desktop vps, buy vps windows, windows server vps, windows 10 vps uk, rds services, rds cal, remote desktop services, remote desktop hosting
#windowsvps #vpshosting #ukvps #virtualserver #windowsvpsuk #vpsserver #hostingvps #cloudvps #windowsvpshosting #cheapvps #vpswithwindows #windowsserver #servervps #vpssolutions #vpswindows #rdscal #remotedesktop #remotedesktopvps #rds #windowsrds
vps windows