Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On my linux PC, I'd like to run nginx as whatever user I'm logged into when I start it, and I'd like it to look for config files in the home directory of that user.

Is there a way to install nginx to do this instead of always running as the same user (e.g. the nginx user) and looking to some config directory in /etc or /usr?

share|improve this question

1 Answer 1

If the configuration folders are hard-coded, (meaning no command line parameters available to change them), you'll have to compile it yourself and change the parameters using --prefix etc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.