diff options
| author | Joe Carstairs <me@joeac.net> | 2026-08-11 21:44:26 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-08-11 21:44:26 +0100 |
| commit | 74b9185a404ace70030e57e0ad493478227a5eac (patch) | |
| tree | 5f32d05d842ef726412ead2932d9157fd2f1df58 /http/nginx.conf | |
| parent | 4e73a59d76e8c4949908e766657f5d634d39fb67 (diff) | |
ansible installs joeac.net website
Diffstat (limited to 'http/nginx.conf')
| -rw-r--r-- | http/nginx.conf | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/http/nginx.conf b/http/nginx.conf deleted file mode 100644 index ca4c2f4..0000000 --- a/http/nginx.conf +++ /dev/null @@ -1,47 +0,0 @@ -user nginx; -worker_processes auto; - -error_log /var/log/nginx/error.log notice; -pid /run/nginx.pid; - -events { - worker_connections 1024; -} - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - access_log /var/log/nginx/access.log main; - sendfile on; - keepalive_timeout 65; - - server { - listen 80; - listen [::]:80; - server_name joeac.net; - - access_log /var/log/nginx/host.access.log main; - - location / { - root /usr/share/nginx/html; - try_files $uri $uri.html $uri/index.html $uri.php $uri/index.php =404; - } - - error_page 404 /error.html; - - location ~ \.php$ { - root html; - fastcgi_pass unix:/run/php8.5-fpm-joeac.net-http.sock; - fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name; - include fastcgi_params; - } - - location ~ /\.sqlite { - deny all; - } - } -} |
