Articles of apache 2.2

AH00428:Apache不断地以状态255重新启动自己

有没有人有一个想法,为什么我的Apache实例不断重新启动自己? 我在日志中看到以下错误: [mpm_winnt:通知] [pid 2592:tid 420] AH00428:父级:subprocess1976退出状态255 – 重新启动 。 [mpm_winnt:notice] [pid 2592:tid 420] AH00428: Parent: child process 1976 exited with status 255 — Restarting. [mpm_winnt:notice] [pid 2592:tid 420] AH00455: Apache/2.4.25 (Win64) OpenSSL/1.0.2j configured — resuming normal operations [core:notice] [pid 2592:tid 420] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24' [mpm_winnt:notice] [pid 2592:tid 420] AH00418: Parent: Created […]

Apache重写改变URIpath

我是Apache新手,无法理解重写规则。 在我的testing服务器上,我有一个任意的Apacheconfiguration,它提供一个Elasticsearch实例来selectIP。 我到目前为止是: <VirtualHost *:80> ServerName home.mytest.server ProxyPass /esearch http://127.0.0.1:9200 ProxyPassReverse /esearch http://127.0.0.1.9200 <Location /esearch> order deny,allow deny from all allow from <my IP> </Location> <Location /esearch/*/_search> #Alter URI in here order deny,allow deny from all allow from <my IP> </Location> </VirtualHost> 我想要做的就是重写所有的请求到/esearch/*/_search在path中包含默认值。 所以/esearch/*/_search被重写为/esearch/myIndex/*/_search 。 我该怎么做呢? 我已经阅读了关于RewriteConditions和Rules的内容,但是它并没有真正地陷入其中。

自动redirect到服务器网页,而无需手动打开浏览器

我想让我的用户设备在连接我的热点后自动访问我的主机站点(可以说服务器页面。我的自定义页面)网页。 我的意思是用户不需要手动打开浏览器。 它会自动打开,使他们访问我的热点页面。 我想知道是否有可能使用我自己的DNS或其他东西。 我正在使用kali linux 2.0

Htaccess规则不适用

我在我的htaccess文件中有以下规则来删除.php扩展名,并做一个301redirect到无扩展名的URL: # To remove .php extension RewriteCond %{THE_REQUEST} ^[AZ]{3,}\ (.*)\.php [NC] RewriteRule ^ %1 [R=301,L] # To check whether the file exists then set it back internally RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^.*$ $0.php [L] 我想在PHP文件上应用以下规则: RewriteRule ^test/([0-9]+)$ test.php?id=$1 [L] 上述规则导致500内部服务器错误。 如果我删除了第一组规则,则第二条规则再次运行。 所以,这两套规则都有一些冲突。

在Amazon Linux AMI上将apache MPM prefork更改为worker

我的项目默认在Prefork MPM下运行。 Rigth现在我有一些放缓的问题,我的网站有超时错误。 searchdifferents foroums我看到这是推荐使用工人模块,我看到不同的方式来改变它,但最终没有任何与我的项目工作。 我用这个脚本在apache2.2下运行我的项目 python manage.py runmodwsgi –setup-only –host = 0.0.0.0 –port = 8000 –reload-on-changes –server-root = / mod_wsgi / 这个脚本在文件夹“mod_wsgi”中创build我的apachectl在文件夹中,我使用“./apachectl -V”来查看在项目中工作的模块,看到这个 服务器版本:Apache / 2.2.34(Unix)服务器内置:Nov 1 2017 18:47:16服务器的模块魔术数字:20051115:43服务器加载:APR 1.5.1,APR-Util 1.4.1编译使用:APR 1.5。 1,APR-Util 1.4.1体系结构:64位服务器MPM:Prefork线程:无分叉:是(可变进程数)使用…. -D编译的服务器APACHE_MPM_DIR =“server / mpm / prefork” -D APR_HAS_SENDFILE – D APR_HAS_MMAP … 所以,要从prefork MPM更改为Worker,我试着在这个path/ etc / sysconfig / httpd文件中取消注释行:HTTPD = […]

在您分发的应用程序中使用Apache HTTPD运行SSL的最佳方式是什么?

假设您有一个Web应用程序,并且使用该Web应用程序分发embedded式Apache HTTPD。 pipe理想要运行SSL的客户很难。 最好的方法似乎是让客户pipe理在embedded式Apache上安装SSL证书,或向客户推荐使用前端SSL加速器卡或披萨盒。 有没有更好的方法来做到这一点?

我如何安装Apache模块?

我从Mac OS X 10.4机器上安装了Apache 2.2。 现在,我想下载/添加/安装/启用模块。 例如,我想要libphp5,mod_rewrite等。我将如何去find并添加这些模块到我的安装?

Apache重写规则 – 删除URL中的“/”

我需要一个重写规则为Apache重写url: http://saftsack.fs.uni-bayreuth.de/~dun3/archives/it/programming/fast-dynamic-property-access-using-reflection-emit/33.html 至 http://saftsack.fs.uni-bayreuth.de/~dun3/archives/fast-dynamic-property-access-using-reflection-emit/33.html 所以,我需要删除“archives”和last /之间的所有/部分,保留/之前的部分和/之后的部分。

httpd.conf并设置一个别名

我试图在我的httpd.conf文件中设置一个别名,以便我可以通过浏览器查看我的日志文件。 以下是我尝试创build的别名。 Alias /logs "/<servername>/log" <Directory /<servername>/log> Options Indexes FollowSymLinks AuthName "Application Logs" AuthType Basic AuthUserFile /<servername>/ihs/610/conf/.htpasswd <Limit GET POST> require valid-user </Limit> </Directory> 这可以在我的开发者框中正常工作,但不在我的生产框中。 不同的是,在我的生产环境中,我的应用程序安装的上下文根是/ 。 当我input我的URL并添加别名(例如mysite.com/logs ),而不是看到日志目录,我看到我的自定义404错误页面。 我认为这是因为我没有使用上下文根或只是/我的应用程序,所有的请求将被应用程序延迟。 有没有解决办法?

如何确定一个Apache正在服务的文件数量,而不是减慢服务器的速度?

我有两个Apache Web服务器,每秒处理数千个文件。 我想比较这两个networking服务器,以确定谁可以更快地服务于更多的文件。 使用ExtendedStatus On的mod_status完全可以完成这项工作,但是它太慢了。 不用说,也没有访问日志。 什么是确定apaches服务的文件/请求数量的简单方法?