我有问题与Apacheconfiguration,通常是在几分钟内完成,但这让我感到困惑,为什么它不会工作。 我使用LetsEncrypt自签名证书进行testing,使用以下教程: https ://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in- Ubuntu的16-04 然后我创build了Apacheconfiguration(注意,添加“绕过字符代码) <“VirtualHost *:80 ServerName website.org ServerAlias www.website.org ServerAdmin [email protected] DocumentRoot /var/aegir/hostmaster-7.x-3.11/sites/website.org/ ErrorLog ${APACHE_LOG_DIR}/website.org_error.log CustomLog ${APACHE_LOG_DIR}/website.org_access.log combined <“/虚拟主机> <“VirtualHost *:443>” ServerAdmin [email protected] ServerName website.org DocumentRoot /var/aegir/hostmaster-7.x-3.11/sites/website.org/ ErrorLog ${APACHE_LOG_DIR}/website.org_error.log CustomLog ${APACHE_LOG_DIR}/website.org_access.log combined SSLEngine on SSLCertificateFile /etc/apache2/ssl/website.org.crt SSLCertificateKeyFile /etc/apache2/ssl/website.org.key <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-6]" \ […]
这个问题之前已经被问过了,我只是希望得到一些帮助。 在search论坛和看到别人的post后,我仍然无法得到这个工作。 现在我有端口80上的所有stream量去一台服务器,我正试图连接一个子域与我的networking上的另一个networking服务器。 我很新的networking和做这个项目学习,任何帮助,非常感谢。 主服务器:我正在使用000-default.conf NameVirtualHost *:80 <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header […]
在谷歌云平台周围,我开始考虑负载平衡,并解决了我需要设置跨区域负载平衡来服务全球相同的内容。 由于预期用户涌入,我的理解导致我创build了一个包含多个虚拟机的实例组。 现在看来我需要手动编辑更新每个实例上每个更新我在一个虚拟机上进行的网站源代码。 我对networking开发并不熟悉,而对其的了解让我相信这不是通常在多个虚拟机上分配服务器工作负载/请求的方式。 如何使用跨实例负载平衡的实例组来部署我的网站并提供完全相同的内容?
我在SCVMM有12台主机。 在主机状态沟通是“需要注意”,我去鼠标右键单击主机上,并转到更新代理检查凭证configuration文件和系统给我这个错误: ///错误(410)s8-vrt-hvsr-006.mgkrk.int上的代理程序安装失败。 RPC服务器不可用 build议的操作再次尝试操作。 如果问题仍然存在,请在本地安装代理,然后添加托pipe计算机。 /// 防火墙closures。 我不知道如何解决这个问题。 感谢所有。
我在Debian上有Apache2,一些域名和多个子域名用于某些服务。 所以我试图为他们使用通配符虚拟主机: <VirtualHost *:8080> ServerName wildcard.domain.tld ServerAlias *.domain.tld UseCanonicalName Off VirtualDocumentRoot /home/domain.tld/public_html/service/%1/ DirectoryIndex index.php SetEnvIf HOST "^([^.]*)\.domain\.tld$" SERVICE=$1 <Directory /home/domain.tld/public_html/service/${SERVICE}/> Options FollowSymLinks MultiViews AllowOverride None RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [L] </Directory> </VirtualHost> 我正在使用mod_vhost_alias模块来使VirtualDocumentRoot与%1 (其中包含主机名的子域部分)以简单的使用。 但是我不能在Directory指令中使用它,所以我必须设置环境variables。 这是无用的,因为Directory没有抓住它,这就是问题所在! 如何将包含子域的variables传递给Directory伪指令? PS我很清楚这个问题是在重写,因为主页( / )正确加载VirtualDocumentRoot和DirectoryIndex指令都设置正确,但任何其他页面(比如说, subdomain1.domain.ltd/somepage )显示来自Apache的响应404 。 当我写my_service_name而不是${SERVICE} ,它适用于特定的服务。
我想将我的api调用从子域redirect到主域。 我的API服务器是在example.com。 请求url是http://foo.example.com/api?service=work&action=all_work ,但我的文件系统调用应该通过。 <VirtualHost *:80> ServerName example.com ServerAlias foo.example.com RewriteEngine On <Proxy *> Order Allow,Deny Allow from all </Proxy> <Location /api> ProxyPass http://othersite.com/api retry=0 SetOutputFilter DEFLATE </Location> DocumentRoot /var/www/example RewriteCond %{HTTP_HOST} ^(foo.example.com)$ [NC] RewriteCond %{REQUEST_URI} =/ RewriteRule (.*) /var/www/example/index.html [L] RewriteCond %{HTTP_HOST} ^(foo.example.com)$ [NC] RewriteCond %{REQUEST_URI} !=/ RewriteRule (.*) /var/www/example/$1 [L] </VirtualHost> 但是我正在浏览器上获得404。
我有一个运行在Nginx上的Wordpress,我按照Digital Ocean的这个教程做了所有的安装。 我使用“example.com”域(字面上)来安装一切,然后为了访问该站点,我在本地修改了我的主机文件,并将来自“example.com”的stream量redirect到我的服务器IP。 这样做,我能够访问和工作的WordPress的网站。 我有一个旧的网站(和一个域)托pipe在另一台服务器上,所以我决定使用该域名为我的新的WordPress的。 我所做的就是将DNS更改为指向我的新服务器,Nginx正在运行,并且我完成了对Nginx服务器块(VH)所需的所有更改,以便它们与新域匹配,而不是与“example.com”匹配,但有一天,我不断收到这个消息: “示例域,该域的build立是为了用于文档中的说明性示例,您可以在没有事先协调或要求许可的情况下在示例中使用此域。 我知道,DNS传播可能需要几分钟到48小时,但我已经检查了一个在线工具,他们已经指向Nginx服务器的IP地址,所以我不知道这里发生了什么… 希望我解释得很好…非常感谢!
我使用以下命令生成证书 openssl req -new -newkey rsa:2048 -nodes -keyout rrr.key -out rrr.csr 然后,我在sites-available文件夹中创build了以下文件ssl-001.conf <VirtualHost _default_:444> DocumentRoot /var/www/html/endpoint/ ServerName safcom.co.ke ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCertificateFile /home/xxxx/rrr.csr SSLCertificateKeyFile /home/xxxx/rrr.key </VirtualHost> 然后把ports.conf改成这个 <IfModule ssl_module> Listen 443 Listen 444 </IfModule> <IfModule mod_gnutls.c> Listen 443 Listen 444 </IfModule> 然后重新启动我的服务器,它不起作用。 我试图实现的是有我的端口80和443正常运行,但有一个额外的端口444有ssl。 我究竟做错了什么? 我的理解是,你可以有一个证书每个IP或端口!
我试图让我的centOS7networking服务器可以被外部用户查看。 我已经添加我的公共IP地址到我的服务器使用: sudo nmtui编辑ens160 和我的虚拟主机文件如下所示: NameVirtualHost *:80 <VirtualHost 65.51.XXX.XXX> ServerAdmin [email protected] ServerName 65.51.XXX.XXX ServerAlias 65.51.XXX.XXX DocumentRoot /var/www/html/example.com/public_html/ <Directory "/var/www/html/example.com/public_html/"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> #ErrorLog /var/www/html/example.com/logs/error.log #CustomLog /var/www/html/example.com/logs/access.log combined </VirtualHost> 在我的httpd.conf中我添加了: Listen 65.51.XXX.XXX:80 当我从networking中的计算机或networking外的计算机inputIP地址时,我什么也没有得到。 这个服务器最终将主持更多的网站,如果这与什么导致问题有关。
我试图监视我的Web服务器上的所有虚拟主机。 到目前为止,我发现两件看起来很有前途的事 Web检测器和页面序列监视器。 页面序列监视器似乎有点矫枉过正。 我只是想确保/path答案与状态代码200.我configuration在默认规定的networking检测器看起来像这样: org.opennms.netmgt.provision.detector.web.WebDetector port : 443 responseRange : 200 schema : https path : / virtualHost : www.example.com 但是,当我运行发现时,我看不到任何结果。 Web服务器尽pipe报告访问尝试。 我不确定我需要做什么才能使结果显示在networking贵公司。