You are not logged in.
Pages: 1
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
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
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
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
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
Pages: 1