Re: Spawning nginx instance on demand

"Andre Rodier" <[email protected]>
Newsgroups gmane.linux.debian.user
Message-ID <[email protected]>
On Mon Jun 1, 2026 at 9:30 AM BST, Nicolas George wrote:
> Andre Rodier (HE12026-05-31):
>> Yes, I can use a search engine too, found the same kind of results, and they're not really helpful.
>
> At this point, what is not really helpful is you saying the results are
> not really helpful.
>
> What you should be saying instead is (1) what search result you used,
> (2) what you tried exactly and (3) hot it failed.
>
>> I can detail more what I have so far, then.
>> 
>> - I have one nginx instance, running as a system systemd service, usng basic authentication (on pam).
>> - I have nginx user instances for each user (used as webdav servers)
>> - The system server uses proxy_pass directive to dispatch queries to each user’s nginx instance.
>
> To prove you are not having a XY problem, you need to explain why you
> think an instance of nginx per user is preferable to the built-in
> mechanism it offers for dav.

I am using the built-in dav mechanism, I don't think I ever wrote I am using a custom one.
Running as a user has the advantage of simplifying the permissions management, files are read and written with the right user account.
The overall mechanism works perfectly, I want to optimise if possible.

>
>> I tested the socket activation, and the systemd logic is working, i.e. it is calling the user systemd service.
>> BUT, the user service fails to start, because the socket is own by systemd.
>
> As said above, you need to show exactly what you did and how it failed.

Answered in the other thread

>
> Regards,
Same,

-- 
🌐 https//rodier.me/
signature.asc (application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE-----

iIYEABYKAC4WIQQgxtr4dsuCnRR2flvDkWYfWv7tQgUCah1KexAcYW5kcmVAcm9k
aWVyLm1lAAoJEMORZh9a/u1CipwBAJciU3Kr9CGsmHuovKefUcwNal6p/fXXsX/S
EHNQ84UTAP0bW6u3kKlkApinuyiRJuIzB86eDm2HsNcdXRrWmmRyDg==
=5Z7M
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.