有些域名注册,如europeregistry.com,允许用户购买和注册一个域名,并build立一个“redirect”到一个现有的网站。 这个redirect是DNS的一个function,还是在registry中设置了一个后台的web服务器,它可以对指定的网站进行HTTPredirect?
我想转移请求到一个特定的子目录,到另一个根目录。 怎么样? 我现有的块是: server { listen 80; server_name www.domain.com; location / { root /home/me/Documents/site1; index index.html; } location /petproject { root /home/me/pet-Project/website; index index.html; rewrite ^/petproject(.*)$ /$1; } # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } } 也就是说, http://www.domain.com应该服务于/home/me/Documents/site1/index.html,而http://www.domain.com/petproject应该为/ […]
为什么Secured HTTP Connection(https)比典型的HTTP(http)慢? 只是有兴趣只知道。 谢谢。
我使用Squid来修改客户端发送的一些HTTP头。 出于testing的目的,我想完全删除'User-Agent'头。 这是我的configuration: request_header_access User-Agent deny all header_replace User-Agent Timmy logformat mylogformat %>a [%{%H:%M}tl] "%rm %ru HTTP/%rv" %>Hs "Accept:%{Accept}>ha User-Agent:%{User-Agent}>ha" {%Ss:%Sh} 我使用语法'> ha'来logging“适配和redirect之后的HTTP请求头部”,正如这里所说的那样:http://www.squid-cache.org/Versions/v3/3.1/cfgman/logformat.html 不幸的是,根据我的日志文件access.log,标题没有被修改: xxxx [19:18] "GET http://example.org/favicon.ico HTTP/1.1" 404 "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 User-Agent:Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2" {TCP_MISS:DIRECT}` 但是,当通过代理向我的Nginx服务器发出请求时,Nginx会正确地logging下这个头文件: [06/Mar/2012:19:18:07 +0100] "GET /sites/all/modules/colorbox/styles/default/images/controls.png HTTP/1.1" 200 2104 "http://example.org/sites/default/files/css/css_zpYGaC6A9wUNMpW3IPg55mz-mMAjvhuo-SZTcX-lqFQ.css" "Timmy" 什么是正确的语法来正确logging修改后的HTTP头,URL重写等鱿鱼日志文件? 我的鱿鱼版本是2.7.STABLE9,它运行在Debian SQueeze 64位上。 谢谢你的帮助
我们的日志中有很多这样的请求: [07/Dec/2015:19:37:03 +0000] "\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\! x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01" 400 172 "-" "-" "-" 我想这是一个安全漏洞,但是我找不到Google。 有没有其他人看过这个或知道它是什么?
build立: Windows和Ubuntu服务器托pipe在VMware ESXi中 我有一个6GB的Windows共享文件 Windows共享使用smbmount挂载在Ubuntu上 指向6GB文件的符号链接是在public_html目录下创build的,这个目录可以被Apache读取 问题: wget得到一个错误Connection closed at byte 2130706432. Retrying. 下载完2130706432字节(正好2032MB,每次都是一样的) Apache返回206 Partial Content而不会在日志中显示任何错误 同样的错误,即使我从localhost下载 使用Firefox代替wget时类似的错误 没有错误,如果我md5sum或cp在Ubuntu上的文件,这表明smbmount和Windows服务器与6GB的文件确定。 如果Apache从本地磁盘提供6GB文件,则不会出现错误,这表明Apache在处理6GB文件时没有问题。 任何想法为什么Apache / symlink / smbmount / Windows将一起使用时会导致错误? 我该如何解决这个问题? 使用的软件: VMware ESXi 4 Update 1 Windows Server 2008 R2 Ubuntu 8.04服务器,vmxnet3 Apache 2.2.8 mount.cifs 1.10-3.0.28a(由smbmount -V返回) 编辑:如果我使用CentOS 4.8 x64而不是Ubuntu 8.04,Apache将断开字节2147483647(2GiB – 1byte)而不是2130706432(2GiB – 16MiB)。
我最近问了一个关于如何使用Nginx保持后端连接持久性的问题,但是发现这是不可能的, 这是一个HTTP / 1.0代理,但没有保持活动请求的能力。 (因此,每个请求都会创build和销毁后端连接。) 它的工作现在一切正常(因为客户端和Nginx之间的连接保持活跃,结果是一样的),但我不想build立一个新的连接每一次收到一个新的请求,即使它是一个unix域套接字。 那么,你是否推荐完成这种连接的软件(最好是开放源代码而不是太繁琐的configuration)?
嗅探HTTPstream量到我的(Linux)服务器,它似乎总是响应广告窗口大小为14。它不受影响,如果我更改默认的initcwnd大小(与IP路由),并不会增加,如果我下载大文件,即使速度增长。 这似乎没有多大意义。 你怎么解释我所看到的?
我在Apache下编写了一个运行在PHP中的IPP服务器。 与标准的IPP客户端,它工作得很好。 但是,当我尝试从iOS设备打印时,当客户端尝试切换到TLS时,连接中断。 这似乎被RFC 2817(在HTTP / 1.1中升级到TLS)所涵盖,并且应该由Apache支持多年。 我的Apacheconfiguration有什么问题? Apache SSLconfiguration: SSLEngine optional SSLCertificateFile /path/to/server.crt SSLCertificateKeyFile /path/to/server.key 请求: OPTIONS * HTTP/1.1 Connection: Upgrade Host: iserv.local Upgrade: TLS/1.0,SSL/2.0,SSL/3.0 User-Agent: CUPS/1.5.0 回复: HTTP/1.1 200 OK Server: Apache/2.2.16 Content-Length: 0 Content-Type: text/plain 预期回复: HTTP/1.1 101 Switching Protocol Server: CUPS/1.4 Connection: Keep-Alive Keep-Alive: timeout=30 Connection: Upgrade Upgrade: TLS/1.0,HTTP/1.1 Content-Length: 0
我为我的WordPress博客(www.deluxeblogtips.com)运行CentOS版本5.8(最终版)。 我有一个备份插件BackupBuddy ,它说: 此服务器上未启用HTTP环回连接 在Google上尝试一些之后,我find了一些解决scheme,但都没有成功。 我想最好的答案是更改/etc/hosts文件,我已经这样做了: 127.0.0.1 localhost localhost6 localhost.localdomain localhost6.localdomain6 127.0.0.1 taiphanmem.org www.taiphanmem.org 127.0.0.1 deluxeblogtips.com www.deluxeblogtips.com ::1 localhost localhost6 localhost.localdomain localhost6.localdomain6 ::1 deluxeblogtips.com www.deluxeblogtips.com ::1 taiphanmem.org www.taiphanmem.org 但是插件的警告仍然出现。 我也在命令行testing: wget www.deluxeblogtips.com curl www.deluxeblogtips.com telnet 0 80 所有的工作。 我不知道现在是什么 我的博客运行缓慢,我猜HTTP环回连接是主要问题。 任何帮助表示赞赏! 谢谢! 编辑: 有关Web服务器(Apache)的更多信息 Listen 80 和 apachectl -S VirtualHost configuration: wildcard NameVirtualHosts and _default_ […]