Update Section_07/default, Section_07/reverse_proxy, Section_07/main.sh

This commit is contained in:
Kishan Takoordyal
2023-05-20 20:16:23 +00:00
parent 216ee28f12
commit 684ce87033
3 changed files with 60 additions and 0 deletions

25
Section_07/default Normal file
View File

@@ -0,0 +1,25 @@
server {
listen 80;
listen [::]:80;
root /var/www/html;
index index.php index.nginx-debian.html;
server_name demo-devops.konnect.dev;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
}
location ~ /\.ht {
deny all;
}
access_log /var/log/nginx/default_nginx.log;
error_log /var/log/nginx/default_nginx.log;
}