我在CentOS 7中安装了Apache 2.4.6。我使用虚拟主机为服务器中的多个域提供服务,并且它们都在/ www中 ,因此: example1.com的内容在/ www / example1 / html里面 example2.com在/ www / example2 / html里面 我在httpd.conf中为这些目录设置了这个目录configuration: <Directory "/www/example1/html"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> <Directory "/www/example2/html"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> 由于需要包含更多的域,所以我想把所有的指令都join到一个域中,所以我尝试了这个: <Directory "/www"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> 但是当我这样做的时候,我试图访问example1.com/test.php (注意test.php位于/www/example1/html/test.php ),我得到了这个apache错误: […]
我们似乎有一些与Apache的问题。 当我看到服务器状态时,我看到: Server Version: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 Server MPM: event Server Built: Apr 12 2017 21:03:28 Current Time: Saturday, 05-Aug-2017 13:51:51 CEST Restart Time: Friday, 04-Aug-2017 21:42:54 CEST Parent Server Config. Generation: 1 Parent Server MPM Generation: 0 Server uptime: 16 hours 8 minutes 56 seconds Server load: 0.18 0.07 0.06 Total accesses: 1188994 […]
我已经在Mac OS X上安装了Jenkins,并且它是不安全的。 让我们encryption,我们保证了jenkins。 现在我们需要redirect旧的http URL( http://example.com:8081 )。 当我们从外面打,浏览器应该被redirect到https端口( https://example.com )。 有人可以指导我,如何完成这个closures?
ProxyPreserveHost打开 <Location /stores/identityiq> ProxyPass https://ncdlxxxasa0002:8443/identityiq ProxyPassReverse https://ncdlxxxasa0002:8443/identityiq </Location> <Location /identityiq> ProxyPass https://ncdlxxxasa0002:8443/identityiq ProxyPassReverse https://ncdlixxxsa0002:8443/identityiq </Location> <Location /> ProxyPass https://ncdlxxxasa0002:8443/identityiq ProxyPassReverse https://ncdlxxxasa0002:8443/identityiq </Location> 我有以上三个Proxypass的基础上的位置。 第一个条件“/ stores / identityiq”获取输出上下文为“/ identityiq”,它被configuration为第二个代理传递的源。 所以,我终于被redirect到了第二个条件的ProxyPassReverse而不是第一个条件。 我的意图是 case1:如果Location / stores / identityiq / foo输出必须是/ stores / identityiq / foo case2:如果Location / identityiq / foo输出必须是/ identityiq / foo
在ELB后面的三台Linux服务器上有两台虚拟主机。 我已经为我的ELB启用了代理协议,这样ssl的请求在实例上而不是在ELB上终止。 我在我的一个虚拟主机日志中看到错误非常持续 错误日志: [Thu Oct 19 14:57:07.126415 2017] [proxy_protocol:error] [pid 2992] [client 127.0.0.1:47348] ProxyProtocol: no valid header found [Thu Oct 19 14:57:07.471596 2017] [proxy_protocol:error] [pid 3076] [client 127.0.0.1:47388] ProxyProtocol: no valid header found [Thu Oct 19 14:57:07.785776 2017] [proxy_protocol:error] [pid 3076] [client 127.0.0.1:47428] ProxyProtocol: no valid header found [Thu Oct 19 14:57:07.909984 2017] [proxy_protocol:error] […]
我正在CentOS 7上运行一个Web服务器(Apache2)。我有以下虚拟主机文件。 该网站正在服务,因为它应该。 但是,URL在浏览器(任何浏览器)中从域名verizondecom.com更改为服务器的IP地址。 什么需要改变,使URL是域名而不是服务器的IP? NameVirtualHost *:80 <VirtualHost *:80> ServerName www.verizondecom.com ServerAlias verizondecom.com ErrorLog /var/log/httpd/verizondecom.err CustomLog /var/log/httpd/verizondecom.log combined DocumentRoot /var/www/www.verizondecom.com/public SetEnv ENVIRONMENT "production" <Directory "/var/www/www.verizondecom.com/public"> AllowOverride ALL Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
我的服务器一次又一次地返回下面的错误,设置如下权限。 这是在Fedora 27上运行的虚拟主机。 从文件底部的/etc/httpd/conf/httpd.conf : NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/home/andrei06041990/sites/cosmeticremix" ServerName cosmeticremix.dev ServerAlias www.cosmeticremix.dev <Directory "/home/andrei06041990/sites/cosmeticremix"> Options Indexes FollowSymLinks #AllowOverride All AllowOverride None Require all Granted </Directory> </VirtualHost> 我应该提供哪些附加信息来帮助解决此问题?
我在Mac上运行Apache,突然之间的http://localhost导致了Apache的HTDOCS文件夹,而一段时间以后,它正确地引用了我的Sites文件夹。 运行apachectl -D DUMP_HOSTS产生: (13)Permission denied: make_sock: could not bind to address [::]:80 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs 一些HTTPD.CONF设置: Listen 80 DocumentRoot "/Users/[username]/Sites" <VirtualHost *> DocumentRoot "/Users/[username]/Sites" ServerName localhost </VirtualHost> 帮帮我。
我在Mac上运行Apache,安装了PHP,我怀疑httpd.conf中的某些内容没有正确设置。 症状:在localhost中运行PHP文件将产生PHP代码,没有别的。 运行apachectl -D DUMP_HOSTS产生: 权限被拒绝:make_sock:无法绑定到地址[::]:80 (13)权限被拒绝:make_sock:无法绑定到地址0.0.0.0:80 没有可用的sockets,closures 无法打开日志 帮帮我。
我希望你能帮助我。 我有一个网站,我正在转移到一个新的数据中心。 服务器几乎是香草,没有控制面板,也没有优化。 当我点击一个页面时,网站的加载时间非常长,尽pipe它的重量相对较轻。 我跑到顶部看看发生了什么,CPU跳到75%,下降到20%左右,而其余的页面加载。 有人build议我在违规stream程上运行lsof -p,但是我不确定我在看什么。 我跑过了我的httpd.conf文件,并注释掉了一堆似乎不必要的加载模块,但是这也没有帮助。 有人有主意吗? lsof的输出http://pastebin.com/mfa113f