apache-modules

How can I compile a Lazarus Apache module to Apache 1.3, 2.0 and 2.2 selectively?

别来无恙 提交于 2019-12-23 01:47:07
问题 I've had a look at /etc/fpc.cfg and there is mention to some defines: FPCAPACHE_1_3 FPCAPACHE_2_0 Then in the fcl-web examples there is mention to: Apache1_3 The only one I've found is on the apr.pas on both these files: /usr/share/fpcsrc/2.4.0/packages/httpd20/src/apr/apr.pas /usr/share/fpcsrc/2.4.0/packages/httpd22/src/apr/apr.pas So how does the compiler decide what version of APR to compile? 回答1: If you enable the right one of those conditionals/directives afaik, the rest of the fpc.cfg

Problem compiling a WebLaz project under Lazarus

半世苍凉 提交于 2019-12-22 00:53:38
问题 My specs: OS: Ubuntu 10.04 LTS amd64 fpc: 2.4.0 lazarus: 0.9.28 I'm trying to compile a WebLaz project just by creating one and then compiling. Somehow the compiler gets all lost when determinig witch httpd and fpapache Units to use. I've found similar problems in the forums: mod_helloworld.lpr Can't find fpapache Unit ... I NEED HELP with fpweb ... After trying some of the solutions provided there I'm still at this point: Project compiles fine if I only have httpd22 under the Compiled units

Apache Proxy: No protocol handler was valid

ぐ巨炮叔叔 提交于 2019-12-20 08:18:28
问题 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:

Apache Proxy: No protocol handler was valid

点点圈 提交于 2019-12-20 08:18:11
问题 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:

apache modules ap_log_perror is at a different level than ap_log_error

荒凉一梦 提交于 2019-12-13 14:27:05
问题 I have an apache module that logs some lines. If I log with ap_log_error and have set LogLevel to debug I see the message. However, if I try to use ap_log_perror I can see error-level logs but the debug logs don't show up. It seems as if the two are at a different level, but I can't figure out how to set the pool's level (or get it for that matter). I see there's a call ap_get_server_module_loglevel but I'm not sure what the right index is. Trying 0 I see the level I set in the apache.conf

How to avoid WSRegister* on a Free Pascal .dll/.so

独自空忆成欢 提交于 2019-12-12 23:27:32
问题 I finally had success compiling a "blank" Apache module, but now I've hit a rather annoying snag. I want to communicate with a MongoDB server and I opted for the only lib around for FreePascal/Lazarus, pebongo. Dependency for pebongo is synapse. Somehow I'm getting "/usr/lib/apache2/modules/mod_visius.so: undefined symbol: WSRegisterCustomImageList" when loading my module into Apache. I've tracked down the symbols onto Menus.pp, I think, and lazarusall(something) also plays a role in this.

Apache mod-auth-mysql with phpass encrypted password (Wordpress)

橙三吉。 提交于 2019-12-10 09:37:31
问题 I need to have password protection on some web pages outside of the main Wordpress site. The users would prefer to use the usernames and passwords they already have in the Wordpress. The obvious solution would seem to be to use the Apace module for Mysql based authentication: mod-auth-mysql. This however does not seem to be possible, because Wordpress uses Phpass password encryption, which is not supported by mod-auth-mysql. http://modauthmysql.sourceforge.net/CONFIGURE http://www.openwall

How can I compile a Lazarus Apache module to Apache 1.3, 2.0 and 2.2 selectively?

℡╲_俬逩灬. 提交于 2019-12-07 00:31:31
I've had a look at /etc/fpc.cfg and there is mention to some defines: FPCAPACHE_1_3 FPCAPACHE_2_0 Then in the fcl-web examples there is mention to: Apache1_3 The only one I've found is on the apr.pas on both these files: /usr/share/fpcsrc/2.4.0/packages/httpd20/src/apr/apr.pas /usr/share/fpcsrc/2.4.0/packages/httpd22/src/apr/apr.pas So how does the compiler decide what version of APR to compile? If you enable the right one of those conditionals/directives afaik, the rest of the fpc.cfg should put the corresponding httpd dir first in the compilers search path, so that that version gets taken.

How can I write an Apache module in C++?

只谈情不闲聊 提交于 2019-12-06 07:03:21
问题 I'd like to write an Apache module in C++. I tried a very barebones module to start: #include "httpd.h" #include "http_core.h" #include "http_protocol.h" #include "http_request.h" static void register_hooks(apr_pool_t *pool); static int example_handler(request_rec *r); extern "C" module example_module; module AP_MODULE_DECLARE_DATA example_module = { STANDARD20_MODULE_STUFF, NULL, NULL, NULL, NULL, NULL, register_hooks }; static void register_hooks(apr_pool_t *pool) { ap_hook_handler(example

Apache mod-auth-mysql with phpass encrypted password (Wordpress)

安稳与你 提交于 2019-12-05 19:39:41
I need to have password protection on some web pages outside of the main Wordpress site. The users would prefer to use the usernames and passwords they already have in the Wordpress. The obvious solution would seem to be to use the Apace module for Mysql based authentication: mod-auth-mysql. This however does not seem to be possible, because Wordpress uses Phpass password encryption, which is not supported by mod-auth-mysql. http://modauthmysql.sourceforge.net/CONFIGURE http://www.openwall.com/phpass/ https://wordpress.stackexchange.com/questions/32004/how-to-validate-wordpress-generated