我已经为httpd.conf添加了一个反向代理服务器的部分,但似乎没有发生任何事情。 没有任何东西正在写入错误或传输日志。 有关如何诊断故障的任何build议? httpd.conf文件 <VirtualHost *:80> ProxyPreserveHost On ServerName www.domain.org.uk ServerAlias domain LogLevel Info ErrorLog /var/log/httpd/domain-error_log TransferLog /var/log/httpd/domain-access_log <Location /> ProxyPass http://domain.org.uk/ ProxyPassReverse http://domain.org.uk/ Order allow,deny Allow from all </Location> </VirtualHost>
我已经configuration了AWS ELB和CloudFront的Web服务器前端。 我已经在负载平衡器(ELB)上部署了SSL证书来进行HTTPS连接。 我们build立了两个监听器协议: 来源 – > 80 – > ELB – > 80 – > EC2网页伺服器 来源 – > 443 – > ELB – > 80 – > EC2 Web服务器 以下博客文章详细介绍了整个设置: http : //www.cloudometry.in/2015/04/dns-entry-confusion-for-aws-elb-backed.html 问题是我们可以打开虚拟testingindex.html文件,但是当我尝试打开我们的应用程序index.php时,一切都崩溃了,浏览器不断刷新。 我注意到下面的loginWeb服务器的访问日志 [26/Apr/2015:17:08:21 +0000] "OPTIONS * HTTP/1.0" 200 125 "-" "Apache/2.4.7 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 PHP/5.5.9-1ubuntu4.6 (internal dummy connection)" 有没有人遇到过这个问题? 我是否缺less任何configuration?
我一直在调查这个,它与Apache的SSL选项 SSLVerifyClient optional_no_ca 我有以下虚拟主机configuration。 NameVirtualHost *:443 <VirtualHost *:443> SSLEngine on SSLOptions +StdEnvVars SSLCertificateFile /root/test-https-certificate/test.company.com.crt SSLCertificateKeyFile /root/test-https-certificate/research.company.com.key SSLCACertificateFile /root/test-https-certificate/sub.class1.server.ca.pem SSLCARevocationPath /root/ssl-authentication/crl SSLCARevocationFile /root/ssl-authentication/crl/crl.pem SSLCADNRequestFile /root/ssl-authentication/client-cert-issuing-ca.crt <Directory /var/www/vhosts/test.com/httpsdocs/topsecret> SSLRequireSSL SSLVerifyClient optional_no_ca SSLVerifyDepth 10 </Directory> DocumentRoot /var/www/vhosts/test.com/httpsdocs/topsecret ServerName test.company.com </VirtualHost> 我现在的问题是,每个人有证书或不能访问我的受限制的文件夹,阅读关于Apache的mod_ssl文档我已经findSSLRequire选项,但我怎么能实现它,当我用它在我的标签redirect到我Apache的默认DocumentRoot 。 还有其他疑问..从安全的angular度来看,我所做的是正确的? 有自签名证书的客户和一个官方实体签署的服务器?
我正在尝试使用apache 2.4configuration两个子域,但似乎有一个问题,我无法解决。 这里是Apache的configuration文件 <VirtualHost *:80> ServerName www.subdomain1.myweb.com ServerAlias subdomain1.myweb.com DocumentRoot /srv/webapps/mywebapp <Directory /srv/webapps/mywebapp> AllowOverride all Options -MultiViews Require all granted </Directory> </VirtualHost> <VirtualHost *:80> ServerName www.subdomain2.myweb.com ServerAlias subdomain2.myweb.com DocumentRoot /srv/webapps/mywebapp2 <Directory /srv/webapps/mywebapp2> AllowOverride all Options -MultiViews Require all granted </Directory> 我试着定义ServerName,但没有解决问题: ServerName www.myweb.com 并尝试在VirtualHost中使用服务器IP,使用通配符,在VirtualHost标签中使用域…等等任何工作如需要: 重点是,Apache服务器subdomain1.myweb.com ,但subdomain.myweb.com不。 唯一的办法,我不能服务这两个子域它是设置最后一个: <VirtualHost *:80> ServerName www.myweb.com ServerAlias myweb.com DocumentRoot /srv/webapps/mywebapp2 […]
我的Apacheconfiguration: DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> IndexStyleSheet "/css/style.css" Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> <Location /> AuthName "AUTH" AuthType Basic AuthBasicProvider ldap AuthzLDAPAuthoritative On AuthLDAPBindDN "cn=write,cn=auth,ou=user,dc=example,dc=com" AuthLDAPBindPassword password AuthLDAPURL "ldap://localhost/ou=user,dc=example,dc=com?uid" AuthLDAPGroupAttributeIsDN Off Require valid-user </Location> <Directory /var/www/dir> RewriteEngine On RewriteCond %{LA-U:REMOTE_USER} (.+) RewriteCond […]
我突然被谷歌的图像代理服务器的请求淹没,看起来像下面这样: 66.249.81.250 – – [04/May/2015:06:55:54 +0000] "GET /images/image_1.jpg HTTP/1.1" 200 93394 "-" "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)" 66.249.93.170 – – [04/May/2015:06:56:31 +0000] "GET /images/image_1.jpg HTTP/1.1" 200 93394 "-" "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)" 66.249.93.170 – – [04/May/2015:06:56:31 +0000] "GET /images/image_1.jpg HTTP/1.1" 200 93394 "-" "Mozilla/5.0 […]
所以我花了两天的时间试图弄清楚这一点。 我们在Amazon EC2 Large上托pipe了一个相当高stream量的Magento站点,使用Apache w / mpm-prefork,Varnish和APCcaching。 问题在于,CPU突然以100%的速度飙升,从不退出,增加负载并使页面无法使用。 每次Apache启动时都会发生这种情况,通常在几分钟后。 首先som服务器统计: 处理器:64位 vCPU:2 内存(GiB):7.5 现在,我们唯一的补救办法是将实例升级到XLarge,在那里它执行“OK”(平均负载在0.6 – 0.9,但仍然可用)。 尽pipe如此,基于其他网站,大型实例应该足以承载相对较好的性能。 我怀疑我们的prefork设置可能导致这一点。 在大型实例中,我们有以下设置: <IfModule mpm_prefork_module> StartServers 10 MinSpareServers 10 MaxSpareServers 20 ServerLimit 50 MaxClients 50 MaxRequestsPerChild 4000 </IfModule> Timeout 120 KeepAlive On MaxKeepAliveRequests 1000 KeepAliveTimeout 5 当升级到XLarge时,我们用一些更高的prefork设置交换: <IfModule mpm_prefork_module> StartServers 20 MinSpareServers 20 MaxSpareServers 40 ServerLimit 150 MaxClients 150 […]
假设我有一个托pipe服务提供商的example.com,因为托pipe不提供先进的function,所以我在B托pipe服务商租用VPS服务器。 在这种情况下,我已经使用apache2在B托pipe提供程序中设置了名为one.example.com和two.example.com虚拟主机,并且可以在本地Web浏览器中访问。 问题是,通过这样设置,我如何从托pipe提供商子域redirect到B托pipe提供商中的每个虚拟主机?
我正在使用一个简单的ProxyPassconfiguration: ProxyPreserveHost On ProxyPass /somedir http://proxy.example/somedir ProxyPassReverse /somedir http://proxy.example/somedir 在发送到远程代理服务器之前是否可以更改根级别path,但只有这一点: 例如, http://local.example/somedir将代理到http://proxy.example/somedir/changed 但是http://local.example/somedir/ *会代理到http://proxy.example/somedir/ *
环境:Debian 7; PHP 5.4.39; Apache 2.2; ISPConfig 使用Howtoforge的Perfect Server Debian指南,我构build了一个Web服务器来为一些PHP应用程序提供服务。 我的意图是使用php mail()函数使用外部SMTP服务器。 我已经卸载后缀,安装MSMTP更新我的php.ini文件中的sendmail_path 。 我也确认了MSMTP设置的工作。 在更新我的php.ini文件并重新启动服务器后, phpinfo()仍然显示旧的sendmail_path /usr/sbin/sendmail -t -i -fwebmaster@$domain.com而不是我自定义的MSMTPpath"/usr/bin/msmtp -C /etc/msmtprc –logfile /var/log/msmtp.log -a $domain -t" 从phpinfo() ,加载的configuration文件是/etc/php5/cgi/php.ini 。 但是,当我运行php -i | grep Configuration php -i | grep Configuration在shell php -i | grep Configuration ,我得到Loaded Configuration File => /etc/php5/cli/php.ini (注意path的差异?)。 尽pipe如此,我开始更新这两个文件的path,包括所有其他的文件。 他们在这些地方大约有4个不同的版本: /etc/php5/apache2/php.ini […]