I would avoid using alias since it’s not mandatory:
server {
listen 80;
server_name ***; # I use one configuration file per domain and for
specific subdomains which have special requirements
root /var/www/$host;
index index.aaa index.bbb; # Depending on our needs
try_files $uri $uri/ /;
}
If multiple place must serve the same content, I may then use symbolic
links in the file system.
For Rails, I can’t give you advice.
B. R.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.