Articles of apache 2.2

Apache2不加载wsgi脚本

我正在根据这些说明设置CKAN,一个挂架应用程序: http ://packages.python.org/ckan/deployment.html 但是,当我指向服务器(没有DNS设置),使用IP或主机名,我只看到Apache的问候页面,sugesting ckan应用程序没有被加载。 这里是我的mod_wsgi脚本: import os instance_dir = '/home/flavio/var/srvc/ckan.emap.fgv.br' config_file = 'ckan.emap.fgv.br.ini' pyenv_bin_dir = os.path.join(instance_dir, 'pyenv', 'bin') activate_this = os.path.join(pyenv_bin_dir, 'activate_this.py') execfile(activate_this, dict(__file__=activate_this)) from paste.deploy import loadapp config_filepath = os.path.join(instance_dir, config_file) from paste.script.util.logging_config import fileConfig fileConfig(config_filepath) application = loadapp('config:%s' % config_filepath) 这里是我的虚拟主机configuration: <VirtualHost *:80> ServerName dck093 ServerAlias dck093 WSGIScriptAlias / /home/flavio/var/srvc/ckan.emap.fgv.br/pyenv/bin/ckan.emap.fgv.br.py # pass […]

Apache别名不能正常工作,但只能在一些虚拟主机上运行

使用Apache 2.2运行Mac OS X Server,并configuration了多个虚拟主机。 我们有一个我们为客户提供的内容pipe理系统,并具有一个别名设置,可以将每个客户端映射到共享代码库,如下所示: 别名“/ admin”“/ path / to / admin” 这个别名正在我们的大部分虚拟主机上工作,但是在一两个失败…任何想法?

apache作为uid运行0

今天早上我在2个月后打开了一台机器,并且在这里和那里发现了/etc/init.d/下面的文件后,apache没有作为守护进程运行 -rwxr-xr-x 1 root root 0 2011-03-04 06:39 apache2 -rwxr-xr-x 1 root root 0 2011-02-03 06:40 apache2.1 -rwxr-xr-x 1 root root 6157 2010-04-14 01:50 apache2.2 我想提一下,我没有在/etc/init.d/中创build这些apache文件,你看到apache2.1和apache2.2后浪费了一些时间来启动apache我只find /etc/init.d/apache2.2 start是启动apache2守护进程,如果我使用/etc/init.d/apache start,那么这是行不通的。 然后我看到在ps输出下面 ps -el | grep apache2 1 S 0 2466 1 0 80 0 – 32139 poll_s ? 00:00:00 apache2 5 S 33 2617 2466 0 […]

PHP不工作后的Apache目录更改

我有一个开发框运行,我把/ home /用户名/ www的虚拟主机的path改为/ home / username / public_html。 重新启动Apache,现在该网站给我一个403,当我访问该网站和PHP现在不工作。 服务器是centos 5.5 x64,php是5.3.5 任何帮助appriciated。 干杯。

笔记本电脑上开发人员的最佳apacheconfiguration

我在PHP开发网站,我不需要很多的Apache和stream血的边缘configuration,以支持千人,因为我只说10人的权力。 <IfModule mpm_prefork_module> StartServers 1 MinSpareServers 1 MaxSpareServers 1 MaxClients 150 MaxRequestsPerChild 0 </IfModule> <IfModule mpm_worker_module> StartServers 1 MinSpareThreads 1 MaxSpareThreads 5 ThreadLimit 64 ThreadsPerChild 25 MaxClients 150 MaxRequestsPerChild 0 </IfModule> <IfModule mpm_event_module> StartServers 1 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule> 我input了网站,然后看了我的要求。只有(用firebug调查)9个文件,但是(ps aux | grep apache说)有4个apache进程运行(一个是母)。 root 1392 […]

在Apache Tomcat6服务器上连同数据库一起托pipejava / j2ee应用程序

我有一个使用tomcat6和后端build立的java / j2ee web应用程序,我有mysql 5.1数据库,我已经configuration了我的服务器,一个亚马逊ec2实例,我已经安装了apache tomcat6以及mysql5.1和java6。 我有我的项目的.war文件。 那么我该怎么做,我应该在哪里放置这些战争文件? 请帮助我

Ubuntu 10.04上的Apache签名

嘿家伙,我试图删除相对于Apache的任何信息,所以我添加到我的httpd.conf在/ etc / apache2这两行: ServerSignature Off ServerTokens Prod 然后我重新启动服务器,但信息仍然显示。 所以我决定直接在底部编辑apache2.conf,并且再次添加这两行,它工作:o 你有什么会导致这个问题的想法? 在包含httpd.conf之后,apach2.conf中的某些内容会覆盖我的规则? 谢谢你的时间!

Apache的警告

当我重新启动httpd服务时,我看到如下的一千个警告: Warning: DocumentRoot [/home/u79894/domains/edsdsdics.com.mx/private_html/lms] does not exist Warning: DocumentRoot [/home/admin/domains/suspended/sketch] does not exist Warning: DocumentRoot [/home/admin/domains/suspended/sketch] does not exist Warning: DocumentRoot [/home/u79507/domains/centsdrointegdraldelaesaludd.com/private_html] does not exist Warning: DocumentRoot [/home/u79875/domains/someberapyikal.com.mx/public_html] does not exist Warning: DocumentRoot [/home/u80030/domains/elesdfo.com.mx/public_html/raptor] does not exist Warning: DocumentRoot [/home/siecweb/domains/sidsdeb.net/public_html/clasesdenatacionsl] does not exist Warning: DocumentRoot [/home/siecweb/domains/snirterwebi.net/public_html/cursosaquahod] does not exist Warning: DocumentRoot [/home/arrietad/domains/arsdfr.com.mx/public_html] does not exist […]

Apache基准保持活跃

我有一个简单的PHP脚本运行在Apache 2.2上(几乎是默认的configuration)。 当运行命令ab -n 1 <address> ,其中地址是本地IP或域名,我收到约15秒的窗口保持打开状态,收到所有的数据在第一秒左右。 当用浏览器浏览同一页面时,我得到的是100分钟以内的回应。 据我所知,大多数现代浏览器都支持Keep-Alive标头,并用某种TTL定时器存储持久连接。 所以,当我运行ab -kn <whatever>命令时,我开始通过浏览器获得更接近我期望的性能的结果。 这是正常的行为? 我的服务器configuration有不正确的地方吗? [编辑] 我已经用-v 2标志再次运行了ab ,这是输出: Benchmarking localhost (be patient)…INFO: POST header == — GET <PATH> HTTP/1.0 Host: localhost User-Agent: ApacheBench/2.3 Accept: */* — LOG: header received: HTTP/1.1 200 OK Date: Sat, 02 Apr 2011 05:09:42 GMT Server: Apache/2.2.16 (Ubuntu) Vary: Accept-Encoding Content-Length: […]

apache2 mods svn和webdav的差异

这两个mod是否应该是一样的,做同样的工作,还是我错过了大局。 我想实现的是我的颠覆回购从networking访问,并能够在他们的工作。 我应该去的SVN SV或DAV? 干杯