FS#74149 - [nginx] default web root path

Attached to Project: Arch Linux
Opened by vladimir prieto (vladimirprieto) - Thursday, 17 March 2022, 18:18 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Saturday, 16 September 2023, 08:13 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Levente Polyak (anthraxx)
Giancarlo Razzolini (grazzolini)
T.J. Townsend (blakkheim)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

default web root path in nginx.config is /usr/share/nginx/html but this collides with configuration of PHP-FPM on systemd.exec wich is :

/etc/systemd/system/multi-user.target.wants/php-fpm.service
ProtectSystem=full

scripts can't write anything under /usr/share by this restriction

default path should be /var/www like other distros

Additional info:
* nginx/1.20.2
* nginx.config
This task depends upon

Closed by  Massimiliano Torromeo (mtorromeo)
Saturday, 16 September 2023, 08:13 GMT
Reason for closing:  Won't fix
Comment by Massimiliano Torromeo (mtorromeo) - Saturday, 16 September 2023, 08:13 GMT
/usr/share/nginx/html is not used as a directory where you are supposed to put your own files in. It's set as a default so that nginx can serve you its own default html page if you did not configure another document root.

You can either set a document root in each "server {}" block or edit the default in "http {}" but if you don't change it is not because we want you to put your files in "/usr/share/nginx/html"

Loading...