Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
server_name site.ru *.site.ru;
- To: nginx-ru@xxxxxxxxx
- Subject: server_name site.ru *.site.ru;
- From: "in_do" <nginx-forum@xxxxxxxx>
- Date: Mon, 07 Nov 2011 11:17:38 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=9Y6/mLWfx6zz2lDttvzSdOZOcJtVT+QuixZGn3jBfBg=; b=Mm92GSycE1xwrCz+ekih/MhhoJHZlfEZ4nPELs1qCeeNlm21SJn2EJAQAxxdd8amgfUI2Qd2hV7CEDcHKsI5/XiKkEILB/sMXY5ktLI2VOQItMktKek/TV4ZiJZCsES2;
Проблема такая :
Домен - site.ru виден в интернете, www.site.ru -
тоже виден
Алиасы для site.ru прописаны как *.site.ru
Но запрос любого вида (кроме site.ru и
www.site.ru), например poddomen.site.ru,
улетает в никуда ответ - Сервер не
найден
Часть конфига для site.ru :
server {
listen xx.xx.xx.xx:80;
server_name site.ru *.site.ru;
error_page 404 = @fallback;
location ~* ^/(webstat/|awstats|webmail/|myadmin/|manimg/) {
proxy_pass http://xx.xx.xx.xx:8080;
proxy_redirect http://site.ru:8080/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
location / {
proxy_pass http://xx.xx.xx.xx:8080;
proxy_redirect http://site.ru:8080/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
location ~*
^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar)$ {
root /home/i/data/www/site.ru;
access_log /home/httpd-logs/site.ru.access.log ;
access_log /home/nginx-logs/i isp;
}
location @fallback {
proxy_pass http://xx.xx.xx.xx:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
}
с конфига апача
<VirtualHost xx.xx.xx.xx:8080>
ServerName site.ru
DocumentRoot /home/i/data/www/site.ru
AssignUserID i i
CustomLog /home/httpd-logs/site.ru.access.log combined
ErrorLog /home/httpd-logs/site.ru.error.log
ServerAlias *.site.ru
php_admin_value open_basedir "/home/i/data:."
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f xxxx"
php_admin_value upload_tmp_dir "/home/i/data/mod-tmp"
php_admin_value session.save_path "/home/i/data/mod-tmp"
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
Alias /manager/ "/home/i/data/www/site.ru/manager/"
</VirtualHost>
Есть ли ошибки в этом куске httpd.conf
созданным ispmanager ?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,217870,217870#msg-217870
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|