You are not logged in.

#1 2011-04-09 10:03:18

psajdi1
Member
Registered: 2011-04-09
Posts: 3

NGINX - userdir

Hello. I've installed Nginx with PHP and MYSQL using that guide https://wiki.archlinux.org/index.php/Nginx/ To install PHP I used new method php-fpm.
So, my questions is how to configure Nginx that i can keep my files at /home/user/public_html so i can access them later at localhost/~user/? I looking for solving that problem in google, found some informations, but nothing really useful.

Offline

#2 2011-04-09 11:51:46

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: NGINX - userdir

you probably want to use ACL to handle the permissions for a start.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2011-04-09 13:50:43

psajdi1
Member
Registered: 2011-04-09
Posts: 3

Re: NGINX - userdir

Sorry, im not very advanced in this topic, could you explain it to me shortly, what you mean and how it is connected with my problem?

Offline

#4 2011-04-09 15:22:49

zcid
Member
Registered: 2011-03-26
Posts: 6

Re: NGINX - userdir

I would probably suggest the easier method of pointing virtual hosts to user directories using something like the first example on this page. Or you could create symlinks to user directories in the /var/http or /srv/http directory. These might be considered hacks or the improper way to do this so hopefully someone else will chime in.

Offline

#5 2011-04-10 19:24:30

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: NGINX - userdir

You _can_ do userdir hosting with regex captures.
http://wiki.nginx.org/NginxUserDir

I wouldn't use that method to support multiple userdir php instances though (for example for all user login accounts). If you need that functionality, I think apache would be a better fit (with something like suphp in cgi mode).
If you just want your user dir to work, then giving it a unique vhost would probably be the most straightforward method.

Last edited by cactus (2011-04-10 19:25:12)


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB