Hi
Can nginX have configuration like apache user’s public_html ?
I have system where I wanna implement multiple user directory where each
user can build his own site using Drupal and Wordpress… each with it’s
own clean url
Hi
Can nginX have configuration like apache user’s public_html ?
I have system where I wanna implement multiple user directory where each
user can build his own site using Drupal and Wordpress… each with it’s
own clean url
You don’t want to (do this with nginx). Especially if you can’t trust
your users.
I suggest a simpler regex (without ? in usernames and the slash out of
the 1st group).
location ~ ^/~(?.+)/(?.*)$ {
alias /home/$username/public_html/$userpath;
}
with named capture groups or just:
location ~ ^/~(.+)/(.*)$ {
alias /home/$1/public_html/$2;
}
with numeric groups.
Note that with drupal you can have multisite installs. Therefore if
you add an A record to your domain.com zone file like, e.g., username.domain.com and make the domain.com/~username URI a 301
redirect you can run your own core and basic modules and let your
users create a theme and add modules as they see fit. Anyway it’s your
machine, so you make the rules.
Happy New Year,
— appa
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.