我正在创buildVPS解决scheme,目前,虚拟机configuration的networking策略为每个虚拟机从保留的255个地址池中提供一个公共IPv4地址。 我需要提供SSH访问这些虚拟机。 我的SSH访问创buildscheme将使用SSH密钥和电子邮件用户为每个虚拟机configuration所需的信息。 我被告知,不build议为每个虚拟机提供打开直接SSH端口的公共IP。 相反,我build议将所有虚拟机映射到一个公共IP,然后打开(我假设有多个)SSH端口访问这些端口。 我将如何做到这一点? 防火墙与端口转发? 亲切的问候
我想修改received_header_text来为validation过的邮件添加额外的“Received:…”标头 – 所以gmail导入将检查我们的服务器的SPF,而不是客户端IP。 但是我的exim.conf中没有包含received_header_text选项,我找不到它所在的configuration文件。没有/ etc / exim4path。 我在哪里可以改变这个选项,或者我如何find合适的configuration文件? 如果我只是需要把它放到exim.conf中 – 我应该放在哪里? 我在Debian上使用直接pipe理的Exim 4.83。 我试图做的事情: 看到相关的问题。 我想过改变: received_header_text = Received: ${if def:sender_rcvhost {from $sender_rcvhost\n\t}{${if def:sender_ident {from ${quote_local_part:$sender_ident} }}${if def:sender_helo_name {(helo=$sender_helo_name)\n\t}}}}by $primary_hostname ${if def:received_protocol {with $received_protocol}} ${if def:tls_cipher {($tls_cipher)\n\t}}(Exim $version_number)\n\t${if def:sender_address {(envelope-from <$sender_address>)\n\t}}id $message_exim_id${if def:received_for {\n\tfor $received_for}} 至: received_header_text = ${if def:authenticated_id {Received: from $primary_hostname ([188.40.153.39] helo=[188.40.153.39]) […]
我想用mod_cluster在我的Apache服务器上编写一个shell脚本来启用和禁用上下文。 但是,由于nonce,它不工作。 如何禁用此检查? 谷歌search显示有一个CheckNonce选项,但不表示应该去哪个configuration文件。
这是一个场景。 我有两个Web应用程序(让我们称之为webapp1和webapp2)需要apache,php(有一些模块)和web应用程序自己的代码。 这是我设置这个(我使用angular色configuration文件模式): modules/ apache/ php/ webapp1/ # responsible for cloning the repo and setting up config files webapp2/ # responsible for cloning the repo and setting up config files profiles/ manifests/ webapp1.pp # responsible for putting the stack together webapp2.pp # responsible for putting the stack together profiles / manifests / webapp1.pp看起来像这样: class profiles::webapp1 […]
在我的nginxconfiguration中,我打算达到以下目的: 转发www到非www 将https转发给http 只使用模式“安全”的uri上的https 下面的代码达到目标,除了在第3点 ,Chrome显示空白页面,错误“此网页有一个redirect循环”。 任何人都可以告诉适当的configuration,和/或任何更好的代码? #redirect www to non-www server { listen 80; server_name www.example.org; return 301 http://example.org$request_uri; } #redirect https to http, for both www and non-www #but process https for uri with pattern 'secure' server { ssl_certificate /home/mydomain/ssl.cert; ssl_certificate_key /home/mydomain/ssl.key; listen 443 ssl; server_name www.example.org example.org; root /home/mydomain/public_html/mydomain/public; index index.php; access_log […]
我想设置我的服务器上的特定path的文件mimetypes,这是运行lighttpd版本1.4.31与SSL。 我正在遵循这个configuration文件: http : //redmine.lighttpd.net/projects/1/wiki/docs_configuration 指定$PHYSICAL["path"]直到lighttpd版本1.5.0才有效,所以我试图指定$HTTP["url"] 。 我已经尝试了两个 $HTTP["url"] == '/my_path/directory_to_affect/foo.html' { # my settings are in here } 和 $HTTP["url"] =~ '/my_path/directory_to_affect/*' { # my settings are in here } 如果我用lighttpd -D -f lighttpd.conftesting我的configuration文件,或者尝试重新启动lighttpd,我得到这个错误: 2015-04-29 14:37:52: (configfile.c.892) source: /etc/lighttpd/lighttpd.conf line: 48 pos: 12 invalid character in variable name 2015-04-29 14:37:52: (configfile.c.948) configfile parser failed […]
道歉为新手问题,但我希望有人可以提供一些帮助/步骤。 我正在将网站从托pipe共享主机帐户在线迁移到新的CentOS 7云服务器。 除了尝试从PHP脚本发送电子邮件之外,一切看起来都是完美的。 在设置CentOS服务器时,我没有configuration任何邮件应用程序等。 我假设这是因为我没有安装的东西。 任何人都可以build议如何设置服务器从PHP应用程序发送电子邮件(我不想设置一个完整的邮件服务器,因为这是通过Office365pipe理) 。 我试着发送一个testing,并把它发送给/ var / spool / mail 任何帮助/build议将是伟大的! (从/ var / spool / mail /下面输出) –0AEF.1434711105/testserver1.localdomain Content-Description: Delivery report Content-Type: message/delivery-status Reporting-MTA: dns; testserver1.localdomain X-Postfix-Queue-ID: 0AEF X-Postfix-Sender: rfc822; [email protected] Arrival-Date: Fri, 19 Jun 2015 06:51:44 -0400 (EDT) Final-Recipient: rfc822; [email protected] Action: failed Status: 5.0.0 Remote-MTA: dns; googlemail.com Diagnostic-Code: […]
Nginx v 1.4.6 autoindexclosures; 在没有中心路由端点的应用程序中,对于没有索引*的结构中的目录,我想要外部redirect,而不是403 Forbidden或内部redirect。 app-root/ app-core/ config/ lib/ modules/ templates/ index.php 鉴于上述情况,如果没有任何app-core / lib / modules / templates /具有索引*,且没有server { location {}}configuration覆盖,则对它们的任何请求都会导致402禁止响应。 令人讨厌。 有了这个configuration,我可以在内部redirect到一个实际的索引。 location ~* ^/(app-core|config|lib|modules|templates)/$ { index /; } 因此,对http://localhost:xxxx/lib/的请求将服务于上面显示的app-root / index.php。 够公平的,但我认为这可能会更好。 我宁愿发出一个303 见其他和redirect到http://localhost:xxxx/但我不知道如何使其工作。
我有一个nginx服务器和一个域example.com。 每个客户都有他自己的子域名,比如wsb.example.com等。他们的内容通过PHP更改,但所有子域名都被redirect到Web服务器上的相同文件夹。 我遇到的唯一问题是访问没有HTTPS的域名。 https://whatever.example.com/正常工作,但whatever.example.com会将我redirect到https://*.example.com/ 我究竟做错了什么? server { listen *:80; listen *:443 ssl; server_name *.alterament.de; index index.php; root /var/www/webapp.alterament.de/public; ssl_certificate ssl/alterament.de.crt; ssl_certificate_key ssl/alterament.de.key; if ($ssl_protocol = "") { rewrite ^/(.*) https://$server_name/$1 permanent; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location /resources { root /var/www/webapp.alterament.de; } }
我正在尝试第一次设置Nginx,并且在接下来的教程中,我已经谈到了获得Nginx的欢迎页面。 我删除了/etc/nginx/nginx.conf文件中的最后两个include,并添加了下面的代码。 不过,无论我尝试多less次移动,我只能得到欢迎页面,而不是我的htdocs目录中的页面。 我相信我错过了简单的东西,但任何指针将不胜感激。 server { listen 80; server_name domain.com; root /var/www/domain.com/htdocs; location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php5-fpm.sock; index index.html index.php; } }