我相信我在Ubuntu 13.10下正确configuration了Apache MPM,包括PHP-FPM和FCGI,并禁用了mod_php。 当我运行顶部时,我可以清楚地看到多个Apache(〜2-3 MB)和php(〜25-30 MB)进程在运行,随着用户/请求的增加而增加。 现在,令我困惑的是,当我用a2查询-M返回时: prefork 或者用apachectl -V : Server MPM: prefork threaded: no forked: yes (variable process count) 这个可以吗? 还是我错过了一些设置?
我们有一个零星的问题访问网站上的一些内部链接。 (Windows Firefox,Internet Explorer,Chrome) 行为 首先点击一个链接,浏览器将无限加载。 第二次点击相同的链接,然后完美的罚款。 客户 我们在客户端运行Windows 7,并且已经尝试了不同的浏览器(IE11,Firefox和Chrome)。 Avira Antivirus在这些客户端上启用了Browser-Security插件。 Web服务器 该服务器正在运行Debian Jessie,Apache 2.4.10和Joomla。 分析networking跟踪 当我们使用wireshark跟踪连接时,我们发现Web服务器在客户端发送请求时没有响应,然后发送FIN-package,客户端忽略它。 客户端继续使用由服务器完成的相同的TCP连接。 Network-Trace: (all captured within a single tcp session) 1. Client sends ACK 2. Server recieves ACK 3. Server sends FIN-package after 5 seconds 4. Client recieves FIN-package 5. Client ignores FIN-package and continues to send data […]
我有同样的问题比: WIldcard SSL子域不指向正确的DocumentRoot但答案不帮助我。 我在我的Apache服务器上安装了通配符SSL。 使用HTTP: www.example.com指向documentroot / home / example / public_html确定 sub.example.com指向documentroot / home / sub_example / public_html确定 现在使用HTTPS: www.example.com指向documentroot / home / example / public_html确定 sub.example.com指向documentroot / home / example / public_html(NOK:与上面的主域相同)。 我已经将.conf文件检查到/ etc / apache2 / sites-available中,并且至less对于documentroot指令是可以的。 为什么子域指向主域的documentroot? 而这只有当SSL? 谢谢
SSLProxyMachineCertificatePath证书select如何工作? 还是在请求中发送了所有的请求?
是否可以根据cookie是否存在来设置不同的别名? 我试图实现的是:使用不同的文件夹来显示不同的内容,基于是否在我的浏览器中设置了cookie,同时保持所有的URLpath相同。 就像是: if(COOKIE=foo & value=val) alias /x /y else alias /x /z 欢迎任何build议 非常感谢你! 贾森
自一天以来,我一直试图从我的应用程序中删除index.php。 我尝试了一切,但无法删除它。 问题是 – 我不允许在项目目录中有.htaccess文件,而在我的本地开发机器上运行的.htaccess文件中的configuration在这里不起作用。 我在本地机器上的configuration是: <IfModule mod_rewrite.c> # Rules to serve URLs which point to files directly # ———- RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> 我知道我不能在主机configuration文件(/etc/apache2/sites-available/000-default.conf/000-default.conf)中使用RewriteBase指令。 但是禁用也不起作用。 为什么这个问题如此困难? 有很多更复杂的redirect工作是完美的,但似乎没有明确的解决scheme,从URL中删除index.php! 编辑:它被安装在Ubuntu 14.04机器上。
我的apache2.4configuration有问题。 我有多个服务通过Apache可达到: www.example.com/http-service/ – >代理通行证configurationwww.example.com/webservice2/ – >代理通行证configurationwww.example.com/service3/ – >目录网页www.example.com/websock/ – >代理传递configuration 现在我想在另一个网页上:www.example.com/ 但是当我想用代理传递configuration来创build位置时,当前服务不再被服务,所有请求都被redirect到 – > www.example.com 有没有解决scheme,所有的服务都可用? <VirtualHost *:443> ServerName ServerAdmin webmaster@localhost DocumentRoot /var/www/ SSLProxyEngine on SSLProxyVerify none SSLProxyCheckPeerCN off SSLProxyCheckPeerName off SSLProxyCheckPeerExpire off SSLCertificateFile /etc/ssl/certs/www-example-com.pem SSLCertificateKeyFile /etc/ssl/private/www-example-com.key SSLCertificateChainFile /etc/ssl/certs/www-example-com.chain <Directory "/converee/"> Options FollowSymLinks AllowOverride None </Directory> <Location /http-service> Require all granted AllowOverride None ProxyPass […]
我在Ubuntu 14.04系统上安装了Apache和Wildfly。 现在我想让Apache( http://webserver/wildfly )访问Wildfly(本地http://localhost:8080 )。 我该怎么做呢? Sofar,我已经启用了两个mod: proxy和proxy_http 。 我在文档/etc/apache2/apache2.conf的最后添加了: ProxyRequests off ProxyPass /wildfly/ http://localhost:8080/ ProxyPassReverse /wildfly/ http://localhost:8080/ 编辑: 现在有一半是有效的,但是path不是正确的。 运行在Wildfly上的一个应用程序的path是: http://webserver/wildfly/testproj/Index.xhtml 但其网页上的所有链接都是这样处理的: http://webserver/testproj/Page1.xhtml http://webserver/testproj/Page2.xhtml http://webserver/testproj/Page3.xhtml 而不是这个: http://webserver/wildfly/testproj/Page1.xhtml http://webserver/wildfly/testproj/Page2.xhtml http://webserver/wildfly/testproj/Page3.xhtml 如果我在本地运行Wild,,一切正常。 这让我相信Apache反向代理configuration中一定有错误。 是对的吗? 我必须做些什么才能让Apacheparsing正确的地址/链接?
我有一台运行Apache的Ubuntu服务器,它托pipe着一个使用HTTP访问的Wordpress站点。 还有Nginx安装了一个只能使用HTTPS访问的Django站点。 现在,我想要完成的是example.com和www.example.com将转到由Apache托pipe的Wordpress,而api.example.com将转到由Nginx托pipe的Django。 如果我只是尝试访问api.example.com主页api.example.com ,但目前还api.example.com ,但有一个奇怪的问题:当我尝试访问api.example.com/adminpipe理面板)时,页面被redirect到WordPress的pipe理login页面www.example.com/wp-admin 。 这是为什么? 我甚至尝试将Djangopipe理面板的URL更改为别的。 这反过来导致Wordpress 404页面(“哎呀,那个页面找不到!”)。 所以,域后的URL部分似乎被Apache劫持了,即使它在不同的子域中。 是什么原因造成的,我该如何解决? Apache网站configuration如下: <VirtualHost *:80> ServerName www.example.com DocumentRoot /var/www/wp <Directory /var/www/wp> Options Indexes FollowSymlinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost> 而Nginx的网站是这样configuration的: upstream app_server { server unix:/tmp/gunicorn.sock fail_timeout=0; } server { listen 443 ssl; charset utf-8; server_name api.example.com; ssl on; # […]
我在Ubuntu 14.04.2服务器上安装了Apache和Wildfly,并创build了一个反向代理,以便Apache代理Wildfly。 它有效,但只有一半。 如果我点击http://myserver/wildfly/myprogram/index.xthml我得到的入口页面,但链接不适当的适应。 链接和图像源忽略http://myserver / wildfly /myprogram/条目,如下所示: http://myserver/myprogram/ 。 我相信我的configuration中一定有缺失的部分。 我在/etc/apache2/apache2.conf文件中添加了以下几行: ProxyRequests Off ProxyPass /wildfly http://localhost:8080 ProxyPassReverse /wildfly http://localhost:8080 我怎么能告诉Apache包含/wildfly到所有的链接,基本上使用链接工作?