Articles of apache 2.2

Apache – 如何findSSLMutex的价值

将SSLMutex指令configuration为默认值,我如何find默认值。 default | yes This directive tells the SSL Module to pick the default locking implementation as determined by the platform and APR. 通过将LogLevel设置为debugging,可以发现类似的核心指令AcceptMutex的缺省值。 这似乎并不是ssl指令的情况。

通过httpd.conf将HTTP请求redirect到HTTPS

我目前尝试将HTTP请求redirect到HTTPS,但无法find一个解决scheme, 在我的httpd.conf中我有以下redirect到我的Tomcat应用程序: RedirectMatch permanent ^/$ /sweetApp/ 我发现我可以使用 redirect或 RedirectMatch 或 (RewriteCond和RewriteRule) – 组合 在HTTPD.conf中。 另一种方式似乎是HTACCESS文件,但我在Windows上工作,不知道如何/不想使用HTACCESS文件。 我怎样才能执行这个redirect? (我没有虚拟主机,使用普通的单一网站安装)

Gitlab前端公开“chrooted”

我有2台服务器: 第一:包含gitlab + apache代理,在我的内部networking域git.development 第二:服务器前端只有nginx,在我的公共领域git.mydomain.com上 我想在第二台服务器上的“公共”目录“chrooted”的gitlab。 公共Web服务器的目录“公共”基础:git.development / public —-> git.mydomain.com 无需login即可redirect到基础:git.mydomain.com/users/sign_in —-> git.mydomain.com 目前我有一个部分的设置: 在服务器1上的Apache(工作没有问题) <VirtualHost *:80> ServerAdmin [email protected] ServerName git.development ProxyRequests Off <Proxy http://127.0.0.1:8082/*> Order deny,allow Allow from 192.168.0. 127.0.0.1 </Proxy> ProxyPreserveHost On ProxyPass /uploads ! ProxyPass /error ! ProxyPass / http://127.0.0.1:8082/ CustomLog ${APACHE_LOG_DIR}/development.3.git.access.log combined ErrorLog ${APACHE_LOG_DIR}/development.3.git.error.log # Modify path to your needs […]

旅客apache和nginx模块不能编译在Ubuntu的12.04LTS

我正在从根帐户做这一切。 我遵循这个指南: https : //www.digitalocean.com/community/articles/how-to-install-rails-apache-and-mysql-on-ubuntu-with-passenger 我已经尝试挂载额外的交换空间,因为服务器只有512MB的RAM(半共享,一半“我的”)。 我已经安装了乘客安装指南所依赖的软件。 当我运行passenger-install-apache2-module和rvmsudo passenger-install-nginx-module时,在检查过程中我得到了所有的绿色,然后发生了最后的事情,在它经常停顿很长时间,然后踢我离开ssh会话: mkdir -p buildout/common/libpassenger_common/ApplicationPool2 g++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template -D_REENTRANT -I/usr/local/include -DHAS_TR1_UNORDERED_MAP -DHAVE_ACCEPT4 -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -ggdb -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fcommon -feliminate-unused-debug-symbols -feliminate-unused-debug-types -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -o buildout/common/libpassenger_common/ApplicationPool2/Implementation.o -c ext/common/ApplicationPool2/Implementation.cpp Write failed: Broken pipe 我拉头发,但没有多大帮助。 似乎没有任何使用我的谷歌福的这个问题的痕迹,所以我猜我在早期的FUBAR'd服务器。 但我真的只是试图安装rails,所以没有很多其他的东西。 如果有问题,我在RVM上有ruby。 有任何想法吗? 编辑:ps […]

在一个单一的虚拟主机的Apache的反向代理

前言: 我已经configuration了一个具有多个虚拟主机的公共访问服务器 一个虚拟主机的请求需要发送到后端服务器。 所有其他请求都需要在本地进行。 问题: 一旦需要代理的网站被启用,所有虚拟主机的请求将被传递到ProxyPass指令中指定的IP地址。 当我尝试访问任何其他虚拟主机时,我从代理网站上获取网页。 禁用代理网站时,所有其他虚拟主机恢复正常操作并在本地进行服务。 configuration: 我在虚拟主机可公开访问的服务器上的configuration:(其他虚拟主机是同一个configuration的副本) <VirtualHost *:80> ServerName www.mainsite.com ServerAlias mainsite.com ServerAdmin [email protected] DirectoryIndex index.php DocumentRoot /var/www/mainsite.com <Directory /> AllowOverride None </Directory> LogLevel info ErrorLog /var/log/mainsite.com_err.log CustomLog /var/log/mainsite.com_access.log combined </VirtualHost> 我在可公开访问的虚拟主机上进行代理的configuration: <VirtualHost *:80> ServerName calendar.othersite.com ServerAdmin [email protected] ProxyRequests Off <Location /> ProxyPass http://192.168.0.1/ ProxyPassReverse http://192.168.0.1/ </Location> <Proxy> Order Allow,Deny Allow […]

Soccorro服务器不起作用

我试图用这里描述的 ApacheconfigurationSocorro服务器。 我开始httpd,但是当我用浏览器联系它时,它不响应。 在l I我得到: HTTP request sent; waiting for response. HTTP request sent; waiting for response. 当我从/etc/httpd/conf.d删除crash-reports.conf , crash-stats.conf和socorro-api.conf ,httpd开始响应,但是soccroro不起作用。 在/var/log/httpd/error_log有 ImportError: No module named site ImportError: No module named site ImportError: No module named site ImportError: No module named site [Thu Sep 05 07:05:45.267607 2013] [:alert] [pid 25735] (13)Permission denied: mod_wsgi (pid=25735): Unable […]

networking摄像机的Apache ReverseProxy设置

我没有尝试过几种不同的可能性,为我的Apachenetworking服务器上的AXIS 213PTZnetworking摄像机设置反向代理,以便能够通过HTTPS访问它。 如果我使用一个命名的虚拟主机,如axis.example.com它可以很好地使用这个configuration: <VirtualHost *:80> ServerName axis.example.com ProxyPass / http://192.168.1.15:80/ ProxyPassReverse / http://192.168.1.15:80/ </VirtualHost> 但是因为我的SSL证书只对www.example.com有效,所以我试图使用目录轴设置一个反向代理,如下所示: ProxyPass /axis/ http://192.168.1.15:80/ ProxyPassReverse /axis/ http://192.168.1.15:80/ 我也尝试了更先进的一个: ProxyPass /axis/ http://192.168.1.15/ ProxyHTMLURLMap http://192.168.1.15 /axis <Location /axis/> ProxyPassReverse http://192.168.1.15/ SetOutputFilter proxy-html ProxyHTMLURLMap / /axis/ ProxyHTMLURLMap /axis /axis </Location> 但是它不起作用,我认为这是因为以下原因:如果我inputhttps://www.example.com/axis将被重写为https://www.example.com/view/index.shtml ,所以没有/axis/部分。 如果我手动input,则会显示摄像机的密码提示,但是之后未find网站。 有没有办法告诉Apache正确地重写URL,或者我必须考虑一些特殊的东西,因为相机使用.shtml页面?

使用包含完整path的Apache 2

我试图设置一个testing环境,在主机上开发软件,然后在虚拟机中testing,虚拟机将所有代码映射到Z:/驱动器。 我的问题是,Apache抱怨,并不会启动说我有一个无效的Z:/source/myconf.conf Includepath。 任何人都有运气先前在另一个不同的驱动器path设置conf文件,可以帮助我了解我做错了什么? 我已经试过,也没有引号。 包含path声明: Include "Z:/source/myconf.conf" 其他问题的答案: Z是通过VMWare的虚拟驱动器,也称为\\vmware-host 应用程序日志中的特定错误如下所示: The Apache service named reported the following error: httpd.exe: Syntax error on .. of C:/…/httpd.conf: Invalid Include path Z:/source/myconf.conf

Apache日志访问已经旋转的日志文件

我通常在/var/log下的域名文件夹中创build我的访问和错误/var/log ,并使用此conf将这些文件与logrotate一起旋转: /var/log/mydomain.org/access.log { weekly missingok rotate 52 compress delaycompress notifempty create 640 root adm sharedscripts prerotate /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=mydomain.org &> /dev/null endscript postrotate if [ -f /var/run/apache2.pid ]; then /etc/init.d/apache2 restart > /dev/null fi endscript } 我经常access.log这个问题:我的access.log被转到access.log.1 ,但是apache2保持对access.log.1日志访问。 我无法弄清楚为什么会发生这种情况。 任何帮助? 提前致谢。

Php执行完成后长时间运行的Apache进程

阿帕奇/ 2.2.3 PHP 5.2.5 CentOS 5 跟踪 跟踪详细图片 启动php 运行脚本 运行kill(注册php关机function) Apache仍然运行很久,不明原因 这不会发生每一页的负载。 我如何追踪Apache正在做什么?