我在一个nginx conf文件中有大约1300vhosts.全部具有以下布局(它们在vhost文件中彼此列出).
现在我的问题是有时我的浏览器会将site2重定向到site1.出于某种原因,虽然域名没有事件匹配.
看起来nginx总是重定向到vhosts文件中的第一个站点.
有人知道这个问题是什么吗?
server {
listen 80;
server_name site1.com;
rewrite ^(.*) http://www.site1.com$1 permanent;
}
server {
listen 80;
root /srv/www/site/public_html/src/public/;
error_log /srv/www/site/logs/error.log;
index index.php;
server_name www.site1.com;
location / {
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
}
location ~ .(php|phtml)$ {
try_files $uri $uri/ /index.php;
fastcgi_param SCRIPT_FILENAME /srv/www/site/public_html/src/public$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
}
server {
listen 80;
server_name site2.com;
rewrite ^(.*) http://www.site2.com$1 permanent;
}
server {
listen 80;
root /srv/www/site/public_html/src/public/;
error_log /srv/www/site/logs/error.log;
index …Run Code Online (Sandbox Code Playgroud) 我遇到了大卷毛问题.
我明白了
- nread <= 0,服务器关闭连接,bailing
- 传输关闭,剩余未完成的读数据
并且内容部分传递
GET /stats/?stats_breakdown=track__track&campaign=&search_criteria=2&period=0&date_month=11&date_day=03&date_year=2015&start_date_month=11&start_date_day=03&start_date_year=2015&end_date_month=12&end_date_day=31&end_date_year=2014 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
Host: domain.com
Accept: */*
Cookie: sessionid=xxg4gglsm7o3b224wihqz8od19wl31h1; csrftoken=JBpLxNtgAVvDEw2wNqvBnRmzDJIjxL6C
Cache-Control: no-cache
Connection: Keep-Alive
Keep-Alive: 600
Accept-Language: en-us
X-CSRFToken: SeN9bHryRK8FWLTLJIs5c6u9AZ47a8pR
Content-Type: application/x-www-form-urlencoded
Origin: https://domain.com
Referer: https://domain.com
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not …Run Code Online (Sandbox Code Playgroud) 我是相当新的,只是了解node.js(作为PHP开发人员的背景).我在nodejs网站上看过一些nodeJs的例子和视频.
目前我正在运行一个视频网站,在后台需要执行很多任务.目前这是由调用php脚本的cronjobs完成的.这种方法的缩减是当其他进程启动时,当前一个进程仍在工作时,您将在服务器上获得高负载等.
需要在服务器上完成的作业如下:
需要在将来完成的任务
我希望能够调用一个url,这样一份工作就可以排队,也可以按时间安排工作,也可以不断运行.
我不知道node.js是否是遵循的路径,这就是我在这里问的原因.在节点中执行此操作有什么好处?缩小?
node.js有什么专业人士?
谢谢你的回复!