apache2.4

Apache Proxy: No protocol handler was valid

主宰稳场 提交于 2019-12-02 13:52:22
I am trying to proxy a subdirectory to another server. My httpd.conf: RewriteEngine On ProxyPreserveHost On RewriteRule .*subdir/ https://anotherserver/subdir/ [P] The problem is that Apache is always logging this: AH01144: No protocol handler was valid for the URL /subdir/. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule., referer: http://localhost/ So after searching the internet, I have activated these modules: LoadModule headers_module modules/mod_headers.so LoadModule proxy_module modules/mod_proxy.so

Intermittent javax.net.ssl failure bad_record_mac

落爺英雄遲暮 提交于 2019-12-02 07:22:59
I have a Java Spring web app running on Tomcat through an Apache https proxypass which fails intermittently when it tries to access a secure IBM Watson service. Apache is secured with a LetsEncrypt cert, redirecting to Tomcat port 8080. Environment: Java: jdk1.7.0_80 Solaris 10 Tomcat 8.0.33 Apache 2.4.18 I turned on javax.net debug and I can see it gets through ServerHelloDone. Here is the rest of the log up to the exception. ServerHelloDone [read] MD5 and SHA1 hashes: len = 4 0000: 0E 00 00 00 .... ECDHClientKeyExchange ECDH Public value: { 4, 1, 15, 216, 52, 12, 28, 142, 36, 18, 118, 235,

Apache2 sends two HTTP headers with a mapped “nph-” CGI

大城市里の小女人 提交于 2019-12-01 06:26:40
Summary I'm trying to map some file extensions to be executed by a nph (Non Parsed Header) CGI executable. Let's say I want to access a URL http://server/file.ext and map the "ext" file extension to "trigger" the execution of my nph CGI (/var/www/cgi-bin/nph-test.sh). Apache configuration To do that I'm using mod_actions and mod_cgid, this is my relevant configuration information: <VirtualHost *:80> DocumentRoot /var/www/htdocs ScriptAlias /cgi-bin /var/www/cgi-bin Action cgi-wrapper /cgi-bin/nph-test.sh AddHandler cgi-wrapper .ext </VirtualHost> NPH CGI script This is my nph-test.sh shell: #!

Enable cURL on PHP7 windows10 64 bit Apache 2.4

▼魔方 西西 提交于 2019-11-30 09:11:09
I am using Windows10 64 bit Apache 2.4.25 (Win64) PHP 7.1.0-Win32-VC14-x64 when i try calling curl_init() function, i get an error saying "Call to undefined function curl_init()" tried following copying ssleay32.dll & libeay32.dll & php7ts.dll to apache/bin folder setting path properly to include above files "C:/PHP;" Any help much appreciated. Here are the steps from obtaining PHP to enabling cURL: Download PHP (these steps tested with 7.1) Add PHP folder to PATH environment variable Update php.ini file with absolute path for extension directory and uncomment php_curl.dll and php_openssl.dll

Laravel 5.5 why is exception not thrown by foreign key violation from delete method?

那年仲夏 提交于 2019-11-29 14:57:48
I have two tables in a Postgresql 9.3 database, companies and sites. There is a one-to-many relationship between them with companies on the one side. There is a foreign key constraint that prevents the deletion of a company if sites have been assigned to it. If I attempt to delete the company with the ID 'KSL' using an SQL query directly on the database, I get the expected error: ERROR: update or delete on table "companies" violates foreign key constraint "sites_company_id_fkey" on table "sites" DETAIL: Key (company_id)=(KSL) is still referenced from table "sites". I have defined an artisan

Enable cURL on PHP7 windows10 64 bit Apache 2.4

拈花ヽ惹草 提交于 2019-11-29 08:57:31
问题 I am using Windows10 64 bit Apache 2.4.25 (Win64) PHP 7.1.0-Win32-VC14-x64 when i try calling curl_init() function, i get an error saying "Call to undefined function curl_init()" tried following copying ssleay32.dll & libeay32.dll & php7ts.dll to apache/bin folder setting path properly to include above files "C:/PHP;" Any help much appreciated. 回答1: Here are the steps from obtaining PHP to enabling cURL: Download PHP (these steps tested with 7.1) Add PHP folder to PATH environment variable

How to install mod_wsgi for apache 2.4 and python 3.4 on windows?

╄→尐↘猪︶ㄣ 提交于 2019-11-27 23:20:48
I had apache 2.4 already installed with xampp.I tried adding mod_wsgi using the steps mentioned here But when I add the line LoadModule wsgi_module modules/mod_wsgi-py34-vc10.so Apache does not start. Graham Dumpleton It is better to build mod_wsgi yourself from code rather than use an arbitrary binary off the net. The steps are as follows. Ensure you have a decent Apache installation which includes header files, e.g. Apache 2.4.37 Win64 from Apache Lounge . Preferably installed at location of C:/Apache24 . Ensure your Python installation is set up so that you can pip install modules. This

how to fix stream_socket_enable_crypto(): SSL operation failed with code 1

只谈情不闲聊 提交于 2019-11-27 11:07:19
stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Im using Laravel 4.2, PHP 5.6, Apache 2.4 I have GoDaddy SSL installed in Amazon ec2 Linux. SSL working fine when i visit the site with https. The error happened when I call my function : <?php public function sendEmail() { \Mail::send ( 'emails.code.code', $data, function ($sendemail) use($email) { $sendemail->from ( 'info@me.com', 'Me Team' ); $sendemail->to ( $email, '' )->subject ( 'Activate your account' ); } ); } ?> I

How to install mod_wsgi for apache 2.4 and python 3.4 on windows?

倾然丶 夕夏残阳落幕 提交于 2019-11-26 21:26:26
问题 I had apache 2.4 already installed with xampp.I tried adding mod_wsgi using the steps mentioned here But when I add the line LoadModule wsgi_module modules/mod_wsgi-py34-vc10.so Apache does not start. 回答1: It is better to build mod_wsgi yourself from code rather than use an arbitrary binary off the net. The steps are as follows. Ensure you have a decent Apache installation which includes header files, e.g. Apache 2.4.37 Win64 from Apache Lounge . Preferably installed at location of C:

how to fix stream_socket_enable_crypto(): SSL operation failed with code 1

女生的网名这么多〃 提交于 2019-11-26 15:24:02
问题 stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Im using Laravel 4.2, PHP 5.6, Apache 2.4 I have GoDaddy SSL installed in Amazon ec2 Linux. SSL working fine when i visit the site with https. The error happened when I call my function : <?php public function sendEmail() { \Mail::send ( 'emails.code.code', $data, function ($sendemail) use($email) { $sendemail->from ( 'info