Thanks vonskippy,
I've double checked everything, have created all the files/entries for the second domain, but when trying to hit in in the browser, I still get a redirect to my first domain.
I've done the following for each (replacing the <domain1> with my real domain, etc...):
Code:
sudo nano /usr/local/nginx/sites-available/<domain1>.com
and in those files:
Code:
server {
listen 80;
server_name www.someDomain.com;
rewrite ^/(.*) http://someDomain.com/$1 permanent;
}
server {
listen 80;
server_name someDomain.com;
access_log /home/USERNAME/public_html/someDomain.com/log/access.log;
error_log /home/USERNAME/public_html/someDomain.com/log/error.log;
location / {
root /home/USERNAME/public_html/someDomain.com/public/;
index index.php index.html;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /usr/local/nginx/conf/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /home/USERNAME/public_html/someDomain.com/public/$fastcgi_script_name;
}
}
Having one for each of the two sites, it still doesn't work.
Is there anything that I may be missing to get this working? I'm not really sure what the best troubleshooting steps are in this case.