Welcome! Log In Create A New Profile

Advanced

Socket address relative to prefix

October 31, 2010 02:20PM
Hi there.

I'm using nginx (v0.8.53 on Arch Linux) for web application development and testing, and I've encountered a problem. I'll specify the problem first and then explain why I ran into it.

Problem:
Is there a way to specify a unix socket address (as in "fcgi_pass unix:/path/to/socket") relative to nginx prefix? I've tried using "fcgi_pass: unix:relative/path", but nginx still interpreted it as absolute path (is this a bug?).

Rationale:
I'd like to be able to specify socket address relative to prefix because of the setup I use - I run nginx (as well as php fastcgi) as non-privileged user and keep all the relevant files inside my home dir. This is mainly for convenience, so that I don't have to go root everytime I want to tweak some settings or start and stop servers. I use only relative paths in nginx.conf, and start nginx with a wrapper script that sets nginx prefix to the directory it resides in. That way I don't have to update config files everytime I move (or copy) this directory.

Any suggestions?

Regards,
Radek
Subject Author Posted

Socket address relative to prefix

Rad3k October 31, 2010 02:20PM

Re: Socket address relative to prefix

Nullivex January 14, 2013 06:33PM

Re: Socket address relative to prefix

Rad3k January 15, 2013 01:31PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on August 08, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready