Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

By steroyle
I have 2 sites and I want to create a separate config files for each, I have created the 2 configs and a symlink for each.
The problem is both domains show the same page rather than going to their own separate pages:
*** Config 1 ***
server { listen 80;
server_name www.domain1.co.uk; root /var/www/domain1.co.uk;
index index.php index.html index.htm;
location / { try_files $uri $uri/ /index.html; }
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html; location = /50x.html { root /var/www/domain1.co.uk; }
location ~ .php$ {
#fastcgi_pass 127.0.0.1:9000;
# With php5-fpm:
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
*** Config 2 ***
server { listen 80;
server_name www.domain2.co.uk; root /var/www/domain2.co.uk;
index index.php index.html index.htm;
location / { try_files $uri $uri/ /index.html; }
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html; location = /50x.html { root /var/www/domain2.co.uk; }
location ~ .php$ {
#fastcgi_pass 127.0.0.1:9000;
# With php5-fpm:
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}