Hi, i've installed debian and nginx on it with php and vhost_alias, i 've configurd vhosts and bind correctly i think, because my main domain is working, but my domain with www. is not.
mydomain.com - is working
www.mydomain.com - is not working.
That's my configuration file from bind for that domain.
[code]
;
$TTL 3600
@ IN SOA r20027.ovh.net. root.r20027.ovh.net. (
2002070212 ;serial
86400 ;refresh
3600 ;retry
3600000 ;expire
1209600 ;minimum
)
;
IN NS r20027.ovh.net. ;adres naszego Primary DNS
IN NS sdns1.ovh.net. ;adres naszego Secondary DNS
;
;
@ IN A 87.98.150.117 ;adres IP naszego serwera trzymającego te domenę (zwykle ten na którym aktualnie piszemy ten plik)
howks IN A 87.98.150.117 ;definicja www.debian.one.pl
www IN A 87.98.150.117 ;definicja howks.debian.one.pl
ns1 IN A 87.98.150.117
ns2 IN A 213.251.188.140
www IN NS r20027.ovh.net. ;wydelegowanie domeny drugi.debian.one.pl z primary DNS'em pod adresem ns1.czyjas domena.org
www IN NS sdns1.ovh.net. ;secondary dns dla drugi.debian.one.pl
[/code]
And that's my vhost configuration file for that domain.
[code]
server {
listen 80;
server_name .heycandy.info;
server_name_in_redirect on;
index index.php;
root /var/www/heycandy;
location = /50x.html {
error_page 500 502 503 504 /50x.html;
root /var/www/nginx-default;
}
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
[/code]
it file named by me "mydomain" in sites-available.
Please say me what could I do to make my site working with this particulary subdomain.
Thx for help in advice and sorry for my bad english.