First, thanks very much for continuing to help. I'm sure I'll be pissed when I find out what I did wrong. :)
Here's my /etc/nginx/sites-available/rompr file:
server {
listen 80;
listen [::]:80;
root /home/andrew/web;
#root /home/andrew/web/rompr;
index index.php index.html index.htm;
server_name euterpe;
client_max_body_size 256M;
# This section can be copied into an existing default setup
location /rompr/ {
allow all;
index index.php;
location ~ \.php {
try_files $uri index.php =404;
# This line for Debian / Ubuntu
fastcgi_pass unix:/run/php/php-fpm.sock;
# This line for Arch / Manjaro
#fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include /etc/nginx/fastcgi_params;
fastcgi_read_timeout 1800;
}
error_page 404 = /rompr/404.php;
try_files $uri $uri/ =404;
location ~ /albumart/* {
expires -1s;
}
}
}
I deleted the default file from both sites-available and sites-enabled. Is that a bad thing?
This is /var/log/nginx/error.log.1
2025/03/27 18:31:17 [error] 110681#110681: *1 "/home/andrew/web/index.php" is forbidden (13: Permission denied), client: 192.168.1.22, server: euterpe, request: "GET / HTTP/1.1", host: "192.168.1.26"
2025/03/27 18:31:34 [error] 110681#110681: *1 open() "/home/andrew/web/rompr" failed (13: Permission denied), client: 192.168.1.22, server: euterpe, request: "GET /rompr HTTP/1.1", host: "192.168.1.26"
2025/03/27 18:34:41 [error] 110723#110723: *1 "/home/andrew/web/index.php" is forbidden (13: Permission denied), client: 192.168.1.22, server: euterpe, request: "GET / HTTP/1.1", host: "192.168.1.26"
2025/03/27 18:38:23 [error] 110725#110725: *3 open() "/home/andrew/web/rompr" failed (13: Permission denied), client: 192.168.1.22, server: euterpe, request: "GET /rompr HTTP/1.1", host: "192.168.1.26"
This is the contents of /var/log/nginx/access.log.1:
192.168.1.247 - - [27/Mar/2025:09:28:28 -0400] "GET /favicon.ico HTTP/1.1" 404 187 "http://192.168.1.26/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.247 - - [27/Mar/2025:09:28:35 -0400] "GET /rompr HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:31:17 -0400] "GET / HTTP/1.1" 403 186 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:31:34 -0400] "GET /rompr HTTP/1.1" 403 186 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:34:41 -0400] "GET / HTTP/1.1" 403 186 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:38:23 -0400] "GET /rompr HTTP/1.1" 403 186 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:41:21 -0400] "GET /rompr HTTP/1.1" 301 169 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:41:32 -0400] "GET /rompr/ HTTP/1.1" 200 2803 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:41:32 -0400] "GET /rompr/get_css.php?setupversion=1743115292&skin=desktop HTTP/1.1" 200 74211 "http://192.168.1.26/rompr/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:41:32 -0400] "GET /rompr/gettheme.php?setupversion=1743115292 HTTP/1.1" 200 14255 "http://192.168.1.26/rompr/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:41:32 -0400] "GET /rompr/jquery/jquery-3.6.4.min.js HTTP/1.1" 200 89795 "http://192.168.1.26/rompr/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:41:32 -0400] "GET /rompr/ui/setupbits.js?setupversion=1743115292 HTTP/1.1" 200 367 "http://192.168.1.26/rompr/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:41:33 -0400] "GET /rompr/iconsets/New-Dark-Circled/togglebutton-new2-on.svg HTTP/1.1" 200 15966 "http://192.168.1.26/rompr/get_css.php?setupversion=1743115292&skin=desktop" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:41:33 -0400] "GET /rompr/iconsets/New-Dark-Circled/togglebutton-new2-off.svg HTTP/1.1" 200 11965 "http://192.168.1.26/rompr/get_css.php?setupversion=1743115292&skin=desktop" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:41:33 -0400] "GET /rompr/iconsets/New-Dark-Circled/blobdown3.svg HTTP/1.1" 200 2627 "http://192.168.1.26/rompr/get_css.php?setupversion=1743115292&skin=desktop" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.1.22 - - [27/Mar/2025:18:41:33 -0400] "GET /rompr/newimages/favicon-32.png HTTP/1.1" 200 2339 "http://192.168.1.26/rompr/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
Do you know what to make of this error in error.log.1?:
"/home/andrew/web/index.php" is forbidden (13: Permission denied
There is no /home/andrew/web/index.php file. There is a /home/andrew/web/rompr/index.php file. I've tried to determine what configuration is sets the path for that file, but haven't gotten it right.
Again, thanks for the help!