Articles of configuration

是否可以使用Lighttpd $ HTTP 条件来dynamic启用ssl.verifyclient。*选项?

我应该为网站的单个terminal启用ssl.verifyclient。*选项,以继续证书login或validation。 但它不工作。 configuration: $HTTP["host"] =~ "^(.*\.|)example.com$"{ $SERVER["socket"] == ":443" { protocol = "https://" ssl.engine = "enable" ssl.disable-client-renegotiation = "disable" #server.name = "example.com" ssl.pemfile = "/etc/lighttpd/ssl/example.com.pem" ssl.ca-file = "/etc/lighttpd/ssl/bundle-ca.pem" ssl.honor-cipher-order = "enable" #ssl.cipher-list = "ECDHE-RSA-AES256-GCM-SHA384" #ssl.use-compression = "disable" setenv.add-response-header = ( "Strict-Transport-Security" => "max-age=63072000; includeSubDomains; preload", "X-Frame-Options" => "DENY", "X-Content-Type-Options" => "nosniff" ) ssl.use-sslv2 = "enable" […]

在使用它作为IIS应用程序池标识之前,是否应该生成用户configuration文件?

将自定义configuration文件用作IIS(7.5,8.0)应用程序池的标识时,是否应该在相关服务器上使用此帐户login,以便事先创build用户configuration文件?

将其他数据包含到漫游configuration文件中?

我知道,可以通过GPO设置( 用户设置 – pipe理员模板 – 系统 – 漫游configuration文件 – 从漫游configuration文件中排除目录 )首选从ntuser.ini漫游configuration文件或(对于中央pipe理)中排除文件夹。 因此,如果我将AppData\Roaming\foo添加到该设置,那么该文件夹将不会被同步,因此它的行为或多或less就像foo在AppData\Local 。 我需要一种方法来包含文件夹。 也就是说,我有一个存储在AppData\Local\bar东西的软件,但我想同步。 不幸的是,我找不到任何GPO设置。 目前,我有一个解决scheme,将AppData\Local\bar复制到AppData\Roaming\something\bar和一个将AppData\Roaming\something\bar下的所有东西复制到AppData\Local的login脚本。 但是我不喜欢这样的解决方法,而且感觉像是出错。 此外,我希望我可以在HKCU\Software\Classes (即个性化的文件types关联)下包含registry设置到漫游configuration文件。 我意识到,这是排除故意(毕竟,如果设置说.xyz文件应该与应用程序XYZ一起使用,可能会发生XYZ甚至没有安装在其他机器上)。 但就我而言,我正在pipe理一个terminal服务器场,所有农场成员都安装了相同的软件,用户抱怨说,他们每天都必须select他们喜欢的浏览器或图像查看软件。 (从我的研究到目前为止,这可能有助于重复使用AppData\Local\Microsoft\Windows\UserClass.*的上述解决方法 – 但我甚至没有尝试,因为我不知道这是一个好主意,只是疯狂复制registry文件,或者在loginskript运行时甚至可以写入目标) 任何想法(更好)解决这个问题?

Nginx:无法build立map_hash,你应该增加map_hash_bucket_size:64

我需要使用很多规则的redirect地图(2k +行,文件大小是〜200K) 我在nginx中有以下设置: map $uri $new_uri { include /etc/nginx/conf.d/redirects.map; } server { listen 80 default_server; listen [::]:80 default_server; # redirects if ($new_uri) { rewrite ^ $new_uri permanent; } 如此处所述,并在此处find。 问题:configtest失败: nginx: [emerg] could not build map_hash, you should increase map_hash_bucket_size: 64 我试图将map_hash_max_size和map_hash_bucket_size增加到相当疯狂的值: map $uri $new_uri { map_hash_max_size 262144; map_hash_bucket_size 262144; include /etc/nginx/conf.d/redirects.map; } 但仍然有相同的错误(以'64'结尾)。 我select了这些值,使它们大于文件大小。 […]

如何白名单用户代理string?

我试图在Nginx中列出一个非常特定的用户代理string。 下面的例子演示了如何将一般types的浏览器列入白名单(例如mozilla或chrome),但是我想列入白名单的string是/和(这打破了nginx的conf。 如何将nginx的用户代理列入白名单? https://gist.github.com/supairish/2951524 https://www.scalescale.com/tips/nginx/block-user-agents-nginx/ https://www.cyberciti.biz/faq/nginx-if-conditional-http_user_agent-requests/ https://stackoverflow.com/questions/17674293/allow-only-one-user-agent-block-the-rest-in-nginx 是否可以将下面的string列入白名单? if ($http_user_agent ~* (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36) ) { return 403; }

nginx – 无法build立最佳的variables_hash

现在有一段时间了,nginx给了我这个警告: nginx: [warn] could not build optimal variables_hash, you should increase either variables_hash_max_size: 1024 or variables_hash_bucket_size: 64; ignoring variables_hash_bucket_size 然而,在我的configuration的http块我有这样的: http { # More config… variables_hash_max_size 1024; variables_hash_bucket_size 64; # More config… } (增加到更高的值也不能解决它!我也运行nginx -T并检查这些键是否设置为不同的值,他们不是!) 我如何解决这个问题? (如果需要,我会发布更多的configuration,我只是不确定哪些部分是相关的。)

使用Windows / Outlook凭据创buildOutlookconfiguration文件

随着Windows漫游configuration文件,大部分的Windowsconfiguration文件可以漫游到域中的其他计算机,这包括Outlookconfiguration文件。 我们正在从漫游configuration文件转向有利于UEV和工作文件夹。 UEV允许某些应用程序数据漫游,包括Outlook凭据,但不漫游Outlookconfiguration文件。 我想知道是否有任何知道的方式,或者有一个关于如何使用这些凭据通过PowerShell /自动化创buildOutlookconfiguration文件的想法。 我也可以没有漫游的configuration文件,但最less提示用户正确的电子邮件凭据。 目前他们被提示与他们的实际电子邮件地址不同的域中的UPN(用户原则名称)。 谢谢 编辑: 我们的域名是corpB.example.com 用户upn是[email protected] 用户的电子邮件应该是[email protected] 交换服务器不属于我们的域名,但我认为它是corpA.example.com的一部分 有一个半集中的组织结构。 主要IT部门提供一些像交换一样的集中式服务。 我们有我们自己的域(子域),可以使用这些服务。

Apache只允许授权用户访问文件

我有一个现有的网站,需要链接到我们的networking服务器上的PDF文件。 问题是,只有通过login到站点进行身份validation的用户才能够查看该文件。 我已经尝试了所有我能想到的,我只是不知道如何configurationApache来做我想做的事情。 要么它允许每个人访问该文件,要么没有人访问。 如何设置configuration,使得只有来自foo.bar.com的请求被授权才能从blah.baz.com获取文件? 更新在我的我的网站的configuration文件我现在有 <Directory "/usr/local/web/static/foo"> Order allow,deny Deny from all Allow from foo.bar.com </Directory> 当我在铬控制台检查失败的请求时,我可以看到它包含 Host:blah.baz.com Referer:http://foo.bar.com/

NGINX 1.1.3.3 / Debian 8 – 自定义安装,client_temp文件而不是目录

我遇到了一个奇怪的问题。 我有一个自定义的configuration和编译版本的NGINX(我想安装几个额外的编译时间模块)。 无论什么原因,它创buildclient_temp作为一个文件,而不是一个目录,每当我尝试上传一个文件,这导致500内部服务器错误。 我的configuration: –prefix=/opt/nginx –sbin-path=/usr/local/sbin/nginx –conf-path=/opt/nginx/nginx.conf –error-log-path=/var/log/nginx/error.log –http-log-path=/var/log/nginx/access.log –pid-path=/var/run/nginx.pid –lock-path=/var/run/nginx.lock –http-client-body-temp-path=/var/cache/nginx/client_temp –http-proxy-temp-path=/var/cache/nginx/proxy_temp –http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp –http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp –http-scgi-temp-path=/var/cache/nginx/scgi_temp –user=www-data –group=www-data –with-http_ssl_module –with-http_realip_module –with-http_gunzip_module –with-http_gzip_static_module –with-threads –with-file-aio –with-ipv6 –with-http_v2_module –with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m64 -mtune=native' –add-module=../ngx_cache_purge-2.3 –add-module=../headers-more-nginx-module –add-module=../ModSecurity-nginx 正如你所看到的,我确实为client_temp指定了一个path:– –http-client-body-temp-path=/var/cache/nginx/client_temp ,但它是一个文件而不是目录。 我是否需要手动创buildclient_temp作为目录并删除文件? 还是有另一种方法来纠正这种情况?

无法在Apache Windows上configurationSSL证书

我从Godaddy购买了一个证书,并且收到了一个.crt文件以及.p7b文件(PKCS#7)。 这是我在https-ssl.conf文件下的configuration <VirtualHost *:443> —- SSLEngine on SSLCipherSuite DHE-RSA-AES256-SHA:EDH-RSA-DES-CBC3-SHA:DHE-RSA-AES128-SHA:AES256-SHA:DES-CBC3-SHA:AES128-SHA:RC4-SHA SSLCertificateFile "conf/extra/blablabla.crt" SSLCertificateChainFile "conf/extra/gd-g2_iis_intermediates.p7b" 当我尝试启动Apache服务器时,在错误日志中收到以下错误: Win32(密钥文件C:/xampp/apache/conf/extra/blablabla.crt)不支持SSLPassPhraseDialog内build, AH02564:无法configurationencryption(?)私钥 我在Windows Server 2012环境下安装了Xampp Apache 2.4。 任何人都可以让我知道是什么导致SSLconfiguration的问题?