Hi,
First you will need to compile the map module. Then, in the main configuration block you define the following:
http {
...
map $host $mage_run_code {
albany.mywebsite.com 'w2760';
alexandria.mywebsite.com 'w1472';
annarbor.mywebsite.com 'w2933';
}
map $host $mage_run_type {
albany.mywebsite.com 'website';
alexandria.mywebsite.com 'website';
annarbor.mywebsite.com 'website';
}
fastcgi_param MAGE_RUN_CODE $mage_run_code;
fastcgi_param MAGE_RUN_TYPE $mage_run_type;
...
}
Alternatively, if you have all three servers defined as virtual hosts via server configuration, then you can simply add:
fastcgi_param MAGE_RUN_CODE '...';
fastcgi_param MAGE_RUN_TYPE '...';
to your fastcgi handler block and then you don't need the map module. Of course, you should substitute "..." with appropriate values per virtual host.
Good luck!
Andrejs