# Problem with Firefox

**URL:** <https://www.ruby-forum.com/t/problem-with-firefox/194479>\
**Category:** NGINX\
**Created:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/problem-with-firefox/194479 "2010-09-06T16:39:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhkien](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/53a042/32.png) [@bhkien](https://www.ruby-forum.com/u/bhkien)\
**Post date:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/problem-with-firefox/194479/1 "2010-09-06T16:39:41Z")

</div>

Hi,

I install NginX 0.8.50 on my server.

It works OK with Internet Explorer, Chrome but on FireFox the website  
does not work without www.

My virtual host config below

```auto

server {
  listen 80;
  server_name mydomain.com;
  rewrite ^/(.*) http://www.mydomain.com/$1 permanent;
  }

server {
  listen 80;
  server_name www.mydomain.com;
  access_log
/var/www/vhosts/mydomain.com/statistics/logs/mydomain.access.log;
  error_log
/var/www/vhosts/mydomain.com/statistics/logs/mydomain.error.log;
  location / {
    root /var/www/vhosts/mydomain.com/httpdocs;
    index index.html index.htm index.php;
  }

  location ~ \.php$ {
      include /etc/nginx/fastcgi_params;
      fastcgi_pass 127.0.0.1:9000;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME
/var/www/vhosts/mydomain.com/httpdocs$fastcgi_script_name;
  }

```

Can you please help me to solve this problem.

Thanks in advance,

Posted at Nginx Forum:

> **[Problem with Firefox](https://forum.nginx.org/read.php?2,127145,127145#msg-127145)**
>
> Hi, I install NginX 0.8.50 on my server. It works OK with Internet Explorer, Chrome but on FireFox the website does not work without www. My virtual host config below \[code\] server { listen 80; server\_nam
