Jump to content

Recommended Posts

Posted (edited)

Пытаюсь установить mod_limitipconn module to Apache 2.0, в реадми чётко написано:

Usage:

1. Open mod_ipconn.dsw using Visual C++

2. Setup the Project Settings to link "Apache2\lib\libhttpd.lib",

"Apache2\lib\libapr.lib"

3. Add "Apache2\include" in your include files Directories.

4. Compile. You'll get mod_limitipconn.dll in Release folder.

5. Copy mod_limitipconn.dll to Apache2\modules folder

6. Setup httpd.conf

Example configuration:

 

---------------------------------------------------------------------------

#Make sure mod_status is loaded

ExtendedStatus On

 

# Only needed if the module is compiled as a DSO

LoadModule limitipconn_module modules\mod_limitipconn.dll

делаю только пункты 5 и 6:
ExtendedStatus On

 

<IfModule mod_limitipconn.c>

<Location /music>

MaxConnPerIP 1

OnlyIPLimit audio/mpeg video

</Location>

 

<Location /video>

MaxConnPerIP 1

OnlyIPLimit audio/mpeg video

</Location>

</IfModule>

запускаю апач, смотрю загруженные модули:

 

по httpd.exe -t -D DUMP_MODULES

выдаёт:

Loaded Modules:

core_module (static)

win32_module (static)

mpm_winnt_module (static)

http_module (static)

so_module (static)

actions_module (shared)

alias_module (shared)

auth_basic_module (shared)

authn_default_module (shared)

authz_default_module (shared)

authz_groupfile_module (shared)

authz_host_module (shared)

authz_user_module (shared)

autoindex_module (shared)

cgi_module (shared)

dir_module (shared)

env_module (shared)

imagemap_module (shared)

include_module (shared)

info_module (shared)

isapi_module (shared)

mime_module (shared)

setenvif_module (shared)

status_module (shared)

php5_module (shared)

Syntax OK

limitipconn_module здесь нет.

в том то и дело что просто положить dll в папку modules недостаточно, апач и не собирается её подгружать.

 

Теперь вопрос: как сделать так чтобы апач загружал этот модуль? Ибо DLL компилера не как DSO, а следовательно подключить её в httpd.conf с помощью строки:

LoadModule limitipconn_module modules/mod_limitipconn.dll

неполучается.

Edited by O6OPMOT

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.