Update Section_07/default, Section_07/reverse_proxy, Section_07/main.sh
This commit is contained in:
25
Section_07/default
Normal file
25
Section_07/default
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user