I am hosting more than one domain on the same server. I have the following configuration for nginx:
server {
listen 80;
root /var/www/mydomain.com;
index index.php index.html index.htm;
server_name mydomain.com;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Which works with all the domains I have on the server. However, today, I added a new domain which I transferred its content from another server (I transferred from shared hosting into a VPS). And after adjusting the DNS, moving the files and migrating the database and finishing everything up, the new domain doesn't work. It just returns 500 error code. No log messages were shown in nginx's log files.