Articles of apache 2.2

集中密码pipe理多个服务器应用程序

我试图find最简单/最好的方法来pipe理less数用户(现在四个),并且现在就可以在我的Fedora服务器上授权多个应用程序。 我希望在那里为所有这些系统提供每个用户一个密码,授权不需要非常细致。 我正在使用的系统以及我想如何使用身份validation的一些示例如下: SSH Apache(限制某些目录到authentication的用户) Subversion(允许authentication用户使用r / w,对其他人没有任何用处) Trac(要求经过authentication的用户访问任何types) LDAP(我从来没有用过)是最好的select吗?

我们有nginx代理到Apache w / mod wsgi和非常高的服务器负载,如何查找原因?

我们有一个坐在apache 2前面的nginx实例(nginx处理静态资源,dynamic内容请求代理到apache),主要是使用mod_wsgi来服务各种python / django应用程序。 我们突然看到了高服务器负载(稳步攀升到50以上,通常不到1),并正在寻找最好的方法来追查原因。 有没有办法看到哪些虚拟主机负责的Apache进程? 诊断高服务器负载的原因的一些一般技巧也将受到欢迎。 编辑:感谢大家的帮助,原来是由代码错误引起的,没有服务器重新configuration是必要的。 但是,提供的提示将在未来有用。

有条件的httpsredirect到http取决于URL? (Apache)的

现在,如果有人使用https://mysite.com,我会重新定向100%的时间 <VirtualHost *:443> ServerAdmin [email protected] ServerName mysite.com ServerAlias www.mysite.com RewriteEngine on RewriteRule (.*) http://%{HTTP_HOST} [L,R=permanent] <VirtualHost> 不过,现在我想有条件地redirect。 如果用户转到https://mysite.com/abc/ ,那么我想使用https; 否则redirect。 我该怎么做呢? 我试着阅读文档,但是找不到我需要的东西。 我在Ubuntu Linux上使用Apache。

适用于Ubuntu的CA SiteMinderconfiguration

尝试通过init.d脚本启动apache时收到以下错误: apache2:/etc/apache2/apache2.conf第186行的语法错误:/etc/apache2/mods-enabled/auth_sm.conf第4行的语法错误:无法加载/apps/netegrity/webagent/bin/libmod_sm22.so进入服务器:libsmerrlog.so:无法打开共享对象文件:没有这样的文件或目录 SiteMinder不正式支持Ubuntu,所以我无法find任何configuration文件来帮助我解决这个问题。 我成功地安装了SiteMinder二进制文件,并向服务器注册了可信主机,但是我无法正确加载apache mod。 我在/ etc / apache2 / mods-available中将以下行添加到了一个新的auth_sm.conf文件中,并在/ etc / apache2 / mods-enabled中将其符号链接到了它: SetEnv LD_LIBRARY_PATH /apps/netegrity/webagent/bin SetEnv PATH ${PATH}:${LD_LIBRARY_PATH} LoadModule sm_module /apps/netegrity/webagent/bin/libmod_sm22.so SmInitFile "/etc/apache2/WebAgent.conf" Alias /siteminderagent/pwcgi/ "/apps/netegrity/webagent/pw/" <Directory "/apps/netegrity/webagent/pw/"> Options Indexes MultiViews ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> 更新: ldd libmod_sm22.so的输出: ldd /apps/netegrity/webagent/bin/libmod_sm22.so linux-gate.so.1 =>(0xb8075000) libsmerrlog.so => /apps/netegrity/webagent/bin/libsmerrlog.so(0xb7ec0000) libsmeventlog.so […]

我如何密码保护一个Apache网站?

我添加了.htaccess AuthType Basic AuthName "restricted area" AuthUserFile /path/to/the/directory/you/are/protecting/.htpasswd require valid-user 和.htpasswd 用户名密码 但是,它不工作。 它不会提示我login。

关于以前的Apache运行Apache Uncleanclosures

我在Vista机器上运行Apache2.2时遇到问题。 当我清理安装Apache它工作得很好,但是我安装了PHP之后,我收到日志中的这个错误消息。 [Fri Oct 23 21:29:02 2009] [warn] pid file C:/Dev/Apache2.2/logs/httpd.pid overwritten — Unclean shutdown of previous Apache run? 安装PHP时,Apache服务已停止。 在通过Apache Service Monitor安装之前,我只做了一次closures。 删除httpd.pid并重新启动不起作用。 我甚至试图在该文件中使用PID查找进程,但是没有这样的进程。

为特定文件types过期标题

我怎样才能添加expires标题只是为PNG和ico文件?

基于CNAME的Apache虚拟主机

我可以在apache上创build一个虚拟主机来响应一个cname请求吗? 例如: example.com的logging是1.2.3.4 foo.example.com是example.com的CNAME 在http.conf中: <VirtualHost *:80> ServerName example.com DocumentRoot /var/www </VirtualHost> <VirtualHost foo.example.com> ServerName foo.example.com DocumentRoot /foo/www </VirtualHost> Apache开始罚款和消化我的conf,但是当我访问foo.example.com我得到/ var / www中的内容,而不是/ foo / www中的内容。 我想我在这里错了。

运行tomcat,我有什么select?

如果我在服务器上运行tomcat java容器,是否需要我使用apache? 我有什么select? 如果我需要Apache,你会推荐什么书?

改变Apache的ServerTokens没有效果

在Ubuntu 9.10中,我无法获得Apache指令ServerTokens的工作。 我的httpd.conf如下所示。 ServerName server.mydomain.com ServerSignature Off ServerTokens Prod ServerName解决了启动警告,但ServerTokens不采取。 Firebug和nmap都报告Apache/2.2.12 (Ubuntu)