0

I have worked with and setup Apache before, but never nginx. Could anyone point me to a good guide that describes how to setup and run nginx for multiple website (vhosts, I suppose) support.

I want to have different websites with different home directories (~/domain1.com, ~/domain.com, etc) running on nginx.

1 Answers1

0

The debian way is to have a file for each virtualhost in /etc/nginx/sites-available, then symlinks to those in /etc/nginx/sites-enabled; then for each site, something like this:

server {
    listen   80;
    server_name  rav.shishnet.org;
    access_log  /var/log/nginx/rav.shishnet.org.log;
    root /home/shish/rav.shishnet.org/;
}
Shish
  • 1,502
  • 9
  • 12