我试图将我的服务器上的PHP处理程序从mod_php切换到PHP-FPM。 但是,我的设置是worng。 当我试图打开server.com/info.php时,它被打开为显示文件内容的标准文本,而不是通过phpparsing: <?php phpinfo(); ?> Httpd和php-fpm日志什么都没显示。 httpd -M – 显示加载的mod_fastcgi。 系统:CentOS 6.4 x64,Apache 2.2.15。 使用这样的configuration从源代码编译的PHP-5.5.3: ./configure \ –prefix=/opt/php553-fpm \ –with-config-file-path=/opt/php553-fpm/etc \ –with-config-file-scan-dir=/opt/php553-fpm/etc/php.d \ –with-pdo-pgsql \ –with-zlib-dir \ –with-freetype-dir \ –enable-bcmath \ –enable-mbstring \ –with-libxml-dir=/usr \ –enable-soap \ –enable-calendar \ –with-curl \ –with-mcrypt \ –with-zlib \ –with-gd \ –with-pgsql \ –disable-rpath \ –enable-inline-optimization \ –with-bz2 […]
我一直在使用Apache作为美洲狮应用服务器(RoR)的反向代理。 这些资产都在一个名为资产的子目录中,并且像下面这样向apacheconfiguration添加了一行: <Location /assets> ProxyPass ! </Location> 这工作得很好,静态的东西是由阿帕奇服务的,其他一切都代理到美洲狮。 不过,我想实现负载平衡,所以我添加了以下几行到configuration: <Proxy balancer://mycluster> BalancerMember http://localhost:9292 BalancerMember http://192.168.1.2:9292 </Proxy> 并设置代理通过和代理通过反向指令到这 ProxyPass / balancer://mycluster lbmethod=byrequests ProxyPassReverse / balancer://mycluster 现在资产目录不起作用,当浏览器尝试获取目录中的任何文件时,我得到一个500错误。 在服务器错误日志中,popup以下行: [Wed Aug 28 15:31:52 2013] [warn] proxy: No protocol handler was valid for the URL /assets/application-c713b532d29cd16b1e8d99df39489e72.css. If you are using a DSO version of mod_proxy, make sure the proxy […]
好吧,我认为这是一个相当简单的任务,但是我可以可靠地进行testing,并且弄清楚我做错了什么。 我试图按照Apache的mod_rewrite文档,但它似乎没有按我期望的方式工作。 我有一个Apache服务器作为反向代理运行在公用OWA访问的Exchange CAS之前,我们希望拦截ActiveSyncstream量(简单模式匹配)并将其redirect到AirWatch安全电子邮件网关(SEG)URL。 所有其他(即Web浏览器OWA)stream量应该照常发送到CAS。 所以我们开始的是这样的,这完全适用于OWA访问,但不执行ActiveSync到SEGredirect: <VirtualHost *:443> ServerName webmail.company.com:443 RewriteEngine on RewriteRule ^/$ https://webmail.company.com/exchange [R,L] <Location /> Order allow,deny Allow from all # This is the CAS's internal IP ProxyPass https://10.100.10.209/ ProxyPassReverse https://10.100.10.209/ </Location> </VirtualHost> 所以我添加了这一行(中间的一个),试图重写以“/ Microsoft-Server-Activesync / [whatever]开头的URL到https://seg.company.com/Microsoft-Server-Activesync / [whatever] “: <VirtualHost *:443> … RewriteEngine on RewriteRule ^/Microsoft-Server-Activesync?(.+)$ https://seg.company.com/Microsoft-Server-Activesync?$1 [R] RewriteRule ^/$ https://webmail.company.com/exchange […]
所以这里是错误 [Mon Sep 30 00:09:53 2013] [error] [client 66.249.66.205] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Mon Sep 30 00:09:53 2013] [debug] core.c(3120): [client 66.249.66.205] r->uri = /home/mysitecom/domains/mysite.com/public_html/index.php [Mon Sep 30 00:09:53 2013] [debug] […]
我正在使用Apache2处理Redhat6。 我在我的IIS7服务器上安装了* .example.com的通配证书。 我把它导出到PFX,把它移到Linux服务器上,把它转换成密钥并用openssl证书。 在重新启动httpd服务之前,我使用SSLconfiguration了VirtualHost,如下所示: <IfModule mod_ssl.c> SSLEngine on SSLCertificateChainFile /etc/ssl/certs/ca-bundle.crt SSLCertificateFile /etc/ssl/certs/example.cer SSLCertificateKeyFile /etc/ssl/certs/example.key </IfModule> 当我尝试浏览网站时,出现以下错误: The security certificate presented by this website was not issued by a trusted certificate authority. The security certificate presented by this website was issued for a different website's address. 当我从Chrome查看证书信息时,它说发行者是Linux服务器,并没有提到实际的域名。 看起来它正在加载一个不同的证书。 有任何想法吗?
我在Windows 7 Pro 64位上使用Zend Server CE,我尝试使用自签名证书激活HTTPS。 我在httpd.conf中取消了这一行注释: Include conf/extra/httpd-ssl.conf 我将server.crt和server.key复制到conf目录,然后尝试通过Apache Monitor重新启动Apache。 但随后得到一个popup消息说: 请求的操作失败! 然后,我前往logs / error.log,但是最近的条目已经超过1个小时,并且完全不符合当前的问题。 为什么不是在error.log中logging错误的原因? 我应该在哪里找它呢?
我有nginx设置为一组apache(LAMP)后端监听端口8080的反向代理。 我还configuration了每个后端服务器的mod_rpaf.conf文件,以包含nginx服务器的代理IP: <IfModule mod_rpaf.c> RPAF_Enable On RPAF_ProxyIPs 127.0.0.1 192.168.0.1 # <- nginx server IP RPAF_Header X-Forwarded-For RPAF_SetHostName On RPAF_SetHTTPS On RPAF_SetPort On </IfModule> 我怎样才能configurationhttpd.conf拒绝任何不是来自nginx的连接? 我已经尝试了以下内容: <Directory "/var/www/html"> Order allow,deny Allow from 192.168.0.1 Allow from 127 Deny from all </Directory> 但是这似乎限制了对nginx代理本身以及任何其他IP的访问。 这是由于mod_rpaf转发客户端IP吗? 如果是的话,我该如何得到这个?
我只是在ubuntu上运行apache2的另一台服务器上恢复了我们的Magento网站。 主页拉起来很好,但如果我尝试去其他页面,我会得到一个404。 权限 所有文件都是660 所有目录都是770所有文件和目录 所有文件和目录都属于www-data组 我试过的东西 检查所有的网站和存储ID 在域和页面path之间添加/index.php/ 清除临时文件 除access.log和error.log中的标准404行之外,日志文件中不会显示任何内容。 apache2 .conf文件 <VirtualHost *:80> ServerAdmin [email protected] ServerName mydomain.com DocumentRoot "/var/www/default/" <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory "/var/www/default/"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all php_admin_flag engine on php_admin_value open_basedir none </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, […]
我有一个使用Apache在Linux计算机上运行的网站。 我已经使用mod_auth_kerb进行针对Windows Active Directory服务器的单点loginKerberos身份validation。 为了使Kerberos正常工作,我在Active Directory中创build了一个名为dummy的服务帐户。 我使用以下命令在Windows AD服务器上使用ktpass.exe生成了Linux Web服务器的密钥表: ktpass /out C:\krb5.keytab /princ HTTP/[email protected] /mapuser [email protected] /crypto RC4-HMAC-NT /ptype KRB5_NT_PRINCIPAL /pass xxxxxxxxx 我可以使用以下命令成功从Linux Web服务器获取票据: kinit -k -t /path/to/keytab HTTP/[email protected] …并使用klist查看票证。 我还用这些Kerberos属性configuration了我的Web服务器: <Directory /> AuthType Kerberos AuthName "Example.com Kerberos domain" KrbMethodK5Passwd Off KrbAuthRealms EXAMPLE.COM KrbServiceName HTTP/[email protected] Krb5KeyTab /path/to/keytab Require valid-user SSLRequireSSL <Files wsgi.py> Order deny,allow Allow […]
我的电脑上安装了LAMP,没有任何问题。 我可以去http://localhost ,它会默认显示/var/www的内容。 有没有办法添加新的“域”参考本地主机? 例如,我可以做一个http://johndesktop ,并指向/home/john/Desktop文件夹? 我只想使用“localhost”这个词。