![]() |
|
|
![]()
|
|
| 7910 |
|
|||
![]() Шустрый ![]() Профиль Группа: Участник Сообщений: 60 Регистрация: 11.6.2006 Где: Kiev Репутация: нет Всего: 1 |
Заранее сильно извиняюсь за ламерский вопрос.
В Интернете есть много дополнительных модулей к Apache, которые можно скачать в виде *.tar.gz. Внутри бывают *.c файлы, которые для второго апача можно установить используя, например, программу apxs с ключами. Как скомпилить такие файлы в *.dll или *.so, для апача, установленного под винду, чтобы было возможно подключить его командой LoadModule? |
|||
|
||||
| soon |
|
|||
|
Новичок Профиль Группа: Участник Сообщений: 1 Регистрация: 1.1.2007 Репутация: нет Всего: нет |
Из официальной доки по апачу:
To create a module DLL, a small change is necessary to the module's source file: The module record must be exported from the DLL (which will be created later; see below). To do this, add the MODULE_VAR_EXPORT (defined in the Apache header files) to your module's module record definition. For example, if your module has: module foo_module; Replace the above with: module MODULE_VAR_EXPORT foo_module; Note that this will only be activated on Windows, so the module can continue to be used, unchanged, with Unix if needed. Also, if you are familiar with .DEF files, you can export the module record with that method instead. Now, create a DLL containing your module. You will need to link this against the ApacheCore.lib export library that is created when the ApacheCore.dll shared library is compiled. You may also have to change the compiler settings to ensure that the Apache header files are correctly located. This should create a DLL version of your module. Now simply place it in the modules directory of your server root, and use the LoadModule directive to load it. |
|||
|
||||
![]()
|
| 0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей) | |
| 0 Пользователей: | |
| « Предыдущая тема | Администрирование Web серверов и Web служб | Следующая тема » |
|
|
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности Powered by Invision Power Board(R) 1.3 © 2003 IPS, Inc. |