Found error with nginx and parket/redirected domain...
When a domain is parket/redirected then only "example.tk" is redirected and not also "
www.example.tk" - (it shows 'welcome to web server')
Problem is inside /home/nginx/domains/"example.com.conf" and in this line :
## web for redirect 'example.tk'
server {
listen *:80;
server_name 'example.tk';
if ($host != 'example.com') {
rewrite ^/(.*) 'http://example.com/$1';
}
}
Solution is very simple, for enable both "example.tk" & "
www.example.tk"
Just add a dot (.) in this line : server_name '.example.tk';
So the proper code is :
## web for redirect 'example.tk'
server {
listen *:80;
server_name '.example.tk';
if ($host != 'example.com') {
rewrite ^/(.*) 'http://example.com/$1';
}
}
I beleive problem is inside /home/nginx/tpl/domains.conf.tpl line: 511
server_name '<?php echo $redirdomainname; ?>';
But i dont know what to change sorry
I hope i helped..