Nginx always redirects the page - hopes somebody reads this

Hi, I hope somebody reads this

i have a subdomain that is redirected to my server:

when I try to access the page in
the browser,
it always redirect me to (which is
located on another server… )

why this redirection happens?

I tried a few things before, about redirection, but currently, there
isn’t any directive about redirection (rewrite directive) in any nginx

here is my vhost nginx config:

server {
listen 80 ;
server_name *;

access_log /var/www/vhosts/bvidinli/ ;
error_log /var/www/vhosts/bvidinli/ ;
access_log /var/log/apache_common_access_log;

location / {

root /var/www/vhosts/bvidinli/;
index index.html index.htm index.php;

location ~ /.ht {
deny all;


it seems as if like, nginx remembers the old rewrite directive and
sends me to that url.
it is same when I try access or any
url that has mybb inside.
really strange for me.
i am new in nginx and want to use it.

i am almost sure that redirection occurs because of nginx, since the
directory /var/www/vhosts/bvidinli/ does not contain
any redirection code, only index.php that has not any redirection.

one more clue:
the redirection occurs only I enter no php file at end of url.
if I enter for example (a
file that has sample output), it shows it to me as expected…

the redirection occurs only when I try to access without php filename at end.

On Sun, Jul 11, 2010 at 7:25 AM, bvidinli [email protected] wrote:

Hi, I hope somebody reads this

here is my vhost nginx config:

server {
just add here:
server_name_in_redirect off;

Boris D…