Ön Bilgi
Nginx sunucusunu kurdunuz ancak ayarlama yapacaksınız.
Örneğin yeni bir web servis oluşturacaksınız veya web sitesinin erişim log dosyalarına bakacaksanız ya da web sitesinin yayın yaptığı portu kontrol edeceksiniz. Nginx web sunucusunun önemli ayar dosyaları ve dizinleri aşağıdaki gibidir.
İçerik Ayarlarının Bulunduğu Dizin
/usr/share/nginx/html
Nginx Server Ayarları
Nginx ‘in ana ayar dosyasının olduğu dizindir.
/etc/nginx/nginx.conf
Web sunucusunun tüm ayar dosyalarının bulunduğu dizindir.
/etc/nginx/nginx
drwxr-xr-x 2 root root 6 Oct 8 2019 conf.d
drwxr-xr-x 2 root root 6 Oct 8 2019 default.d
-rw-r--r-- 1 root root 1077 Oct 8 2019 fastcgi.conf
-rw-r--r-- 1 root root 1077 Oct 8 2019 fastcgi.conf.default
-rw-r--r-- 1 root root 1007 Oct 8 2019 fastcgi_params
-rw-r--r-- 1 root root 1007 Oct 8 2019 fastcgi_params.default
-rw-r--r-- 1 root root 2837 Oct 8 2019 koi-utf
-rw-r--r-- 1 root root 2223 Oct 8 2019 koi-win
-rw-r--r-- 1 root root 5170 Oct 8 2019 mime.types
-rw-r--r-- 1 root root 5170 Oct 8 2019 mime.types.default
-rw-r--r-- 1 root root 2469 Oct 8 2019 nginx.conf
-rw-r--r-- 1 root root 2656 Oct 8 2019 nginx.conf.default
-rw-r--r-- 1 root root 636 Oct 8 2019 scgi_params
-rw-r--r-- 1 root root 636 Oct 8 2019 scgi_params.default
-rw-r--r-- 1 root root 664 Oct 8 2019 uwsgi_params
-rw-r--r-- 1 root root 664 Oct 8 2019 uwsgi_params.default
-rw-r--r-- 1 root root 3610 Oct 8 2019 win-utf
Her web sitesine ait ayarların barındırılacağı dizindir. Her ayrı domain için ayarlar bu dizindedir.
/etc/nginx/conf.d
Nginx Log Dosyaları
Web sitesinin erişim logları dizini
/var/log/nginx/access.log
Web sitesinin hata logları dizini
/var/log/nginx/error.log