apache2.4

How to block a specific user agent in Apache

被刻印的时光 ゝ 提交于 2019-12-11 02:46:48
问题 I'm configuring my Django app to email me errors (exceptions). Normally no problem - but my email is hosted on Office 365, and it seems that Microsoft is automatically scanning and loading URLs within emails. The result is that it hits the URL in my Django app, and causes another error... and another email. End result: a charming little mail loop which sends me 50+ messages within a few seconds. I found entries like this in my apache logs: 157.55.39.163 - - [22/Aug/2018:17:30:05 +0000] "GET

How to disable buffering with apache2 and mod_proxy_fcgi?

二次信任 提交于 2019-12-10 17:53:04
问题 I'm using mod_proxy_fcgi with apache 2.4 on a debian Jessie with my C++ application which does ServerSentEvents with libfcgipp. My problem is, that apache still buffers my response data. I confirmed that it isn't buffered by the libfcgipp library by using wireshark: After starting the fcgi application via spawn-fcgi , the data gets send to the apache web server as soon as possible. But in my browser (which I use for testing, later there will be a C++ client) it only shows up after I "killed"

Symfony 4 + Apache 2.4 + mod_rewrite not working

*爱你&永不变心* 提交于 2019-12-10 10:47:52
问题 What am I doing wrong? This is my config on /etc/apache2/sites-enabled/hello-world.conf <VirtualHost *:80> ServerName hello-world DocumentRoot "/home/carlos/dev/github/hello-world/public" <Directory "/home/carlos/dev/github/hello-world/public"> AllowOverride None Order Allow,Deny Allow from All <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] </IfModule> </Directory> # uncomment the following lines if you

WSGI as AuthFormProvider

老子叫甜甜 提交于 2019-12-08 05:26:54
问题 Is it possible to use 'wsgi' as an AuthFormProvider in Apache2.4? As a first attempt I edited the examples found here. The configuration now looks like this but does not work: <Location "/test"> AuthType Form AuthFormProvider wsgi AuthName "test" AuthFormLoginRequiredLocation /login.html WSGIAuthUserScript /path/to/django/wsgi.py WSGIAuthGroupScript /path/to/django/wsgi.py Require Group test Require valid-user Session On SessionCookieName xyz path/ SessionCrypotPassphrase 123456789 </Location

Setting Up git-http-backend with apache 2.4

…衆ロ難τιáo~ 提交于 2019-12-08 01:19:16
问题 Im trying to set up a git server using git-http-backend and apache 2.4 I found this question about the same thing which was helpful, but I'm still reaching a point where I'm stuck. I've installed git and apache2 on Ubuntu 16.04 and added the needed modules using sudo a2enmod cgi alias env Then added the following snippet in /etc/apache2/apache2.conf : <VirtualHost *:80> SetEnv GIT_PROJECT_ROOT /var/www/git SetEnv GIT_HTTP_EXPORT_ALL SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER ScriptAliasMatch \

Apache 2.4 - remove | delete | uninstall

自作多情 提交于 2019-12-07 14:51:29
问题 I have been searching the web for quite some time, but I could not found how to completely remove the apache 2.4 . Using : Windows 7 c:\apache24\ I've tried all commands, but nothing works. httpd -k shutdown httpd -k stop httpd -k uninstall keep getting the same result (for each command) : <OS 5> access is denied. failed to open the 'Apache2.4' service. notice, that the service still running, meaning that the apache is still working, and I get the "It works!" in the localhost . 回答1: You are

WSGI as AuthFormProvider

半腔热情 提交于 2019-12-07 03:21:23
Is it possible to use 'wsgi' as an AuthFormProvider in Apache2.4? As a first attempt I edited the examples found here . The configuration now looks like this but does not work: <Location "/test"> AuthType Form AuthFormProvider wsgi AuthName "test" AuthFormLoginRequiredLocation /login.html WSGIAuthUserScript /path/to/django/wsgi.py WSGIAuthGroupScript /path/to/django/wsgi.py Require Group test Require valid-user Session On SessionCookieName xyz path/ SessionCrypotPassphrase 123456789 </Location> For a start, you must be using mod_wsgi 4.3.0 for WSGIAuthGroupScript to work with Apache 2.4. The

Symfony 4 + Apache 2.4 + mod_rewrite not working

荒凉一梦 提交于 2019-12-06 05:00:33
What am I doing wrong? This is my config on /etc/apache2/sites-enabled/hello-world.conf <VirtualHost *:80> ServerName hello-world DocumentRoot "/home/carlos/dev/github/hello-world/public" <Directory "/home/carlos/dev/github/hello-world/public"> AllowOverride None Order Allow,Deny Allow from All <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] </IfModule> </Directory> # uncomment the following lines if you install assets as symlinks # or run into problems when compiling LESS/Sass/CoffeeScript assets #

Windows下Apache+Mysql搭建PHP开发环境

为君一笑 提交于 2019-12-06 03:19:16
环境:php-5.5+httpd-2.4+mysql-5.6 资源下载地址:(使用64位的资源) php-5.5.34-Win32-VC11-x64 http://windows.php.net/download/#php-5.5 httpd-2.4.20-win64-VC11 http://www.apachelounge.com/download/VC11/ eclipse-php-helios-win32.win32.x86 http://www.eclipse.org/downloads/packages/eclipse-php-developers/heliosr mysql-5.6.30-winx64 http://dev.mysql.com/downloads/mysql/5.6.html 0。做成eclipse的workspace目录 f:/pp/work 1。php配置 将php.ini-development 文件重命名为 php.ini ; extension_dir = "ext" 改成 extension_dir = "f:/pp/soft/php-5.5.34-Win32-VC11-x64/ext" 开启相应的扩展库,将下面的extension 前面的分号 “;” 去掉。 ;extension=php_curl.dll ;extension=php

How to show Directory Index in Apache 2.4 with custom Document Root

一笑奈何 提交于 2019-12-04 16:53:52
问题 i have problem in Apache 2.4 in Ubuntu 13.10. I try to change Document Root to /home/fandi/public_html And all working fine. But i try to create folder in my public_html/ i get an error like this : [Sat Jan 25 10:59:50.149441 2014] [autoindex:error] [pid 1093] [client 127.0.0.1:39901] AH01276: Cannot serve directory /home/fandi/public_html/report_php/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index