Страница 1 из 2
имя модуля в конфиге апача
Добавлено: 2008-09-06 22:27:10
Alex Keda
Как определить?
собсно - есть такой модуль в портах - mod_rpaf2
как я его тока не пытался уже прописать:
Код: Выделить всё
# real ip module
<IfModule module_rpaf2>
RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1 77.221.149.162 77.221.149.163 77.221.149.164 77.221.149.165 77.221.149.166
RPAFheader X-Forwarded-For
#RPAFheader X-Real-IP
</IfModule>
и ещё как-то - один фиг - директивы внутри не пашут.
убираю ифмдуле - пашут....
Re: имя модуля в конфиге апача
Добавлено: 2008-09-06 22:31:14
zingel
Re: имя модуля в конфиге апача
Добавлено: 2008-09-06 22:32:21
Alex Keda
Код: Выделить всё
hosting# httpd -M
httpd: illegal option -- M
Usage: httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t : run syntax check for config files
hosting#
вторая апача, если что...
Re: имя модуля в конфиге апача
Добавлено: 2008-09-06 22:53:46
zingel
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 13:13:02
Alex Keda
Код: Выделить всё
serv# apachectl -M
httpd: illegal option -- M
Usage: /usr/local/sbin/httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t : run syntax check for config files
serv#
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 13:56:28
zingel
да что такое...
Код: Выделить всё
[root@zingel /usr/src]# apachectl -M
Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
authn_file_module (shared)
authn_dbm_module (shared)
authn_anon_module (shared)
authn_default_module (shared)
authn_alias_module (shared)
authz_host_module (shared)
authz_groupfile_module (shared)
authz_user_module (shared)
authz_dbm_module (shared)
authz_owner_module (shared)
authz_default_module (shared)
auth_basic_module (shared)
auth_digest_module (shared)
file_cache_module (shared)
cache_module (shared)
disk_cache_module (shared)
dumpio_module (shared)
include_module (shared)
filter_module (shared)
charset_lite_module (shared)
deflate_module (shared)
log_config_module (shared)
logio_module (shared)
env_module (shared)
mime_magic_module (shared)
cern_meta_module (shared)
expires_module (shared)
headers_module (shared)
unique_id_module (shared)
setenvif_module (shared)
version_module (shared)
ssl_module (shared)
mime_module (shared)
dav_module (shared)
status_module (shared)
autoindex_module (shared)
asis_module (shared)
info_module (shared)
cgi_module (shared)
dav_fs_module (shared)
negotiation_module (shared)
dir_module (shared)
imagemap_module (shared)
actions_module (shared)
speling_module (shared)
alias_module (shared)
rewrite_module (shared)
php5_module (shared)
limitipconn_module (shared)
musicindex_module (shared)
rpaf_module (shared)
evasive20_module (shared)
Syntax OK
[root@zingel /usr/src]# apachectl -v
Server version: Apache/2.2.9 (FreeBSD)
Server built: Sep 5 2008 14:40:29
попробуй тогда....
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 14:32:45
Alex Keda
Код: Выделить всё
hosting# httpd -D
httpd: option requires an argument -- D
Usage: httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t : run syntax check for config files
hosting#
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 14:54:12
ProFTP
apache1.3 ?
записывай логи в MySQL и там траф считай...
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 15:17:05
Alex Keda
второй
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 15:24:13
zingel
второй второй или второй нулевой?
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 15:37:51
Alex Keda
Код: Выделить всё
hosting$ pkg_info | grep apache
apache-2.0.63_2 Version 2.0.x of Apache web server with prefork MPM.
hosting$
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 15:48:36
ProFTP
а что этот мод делает, траф считает или нет?
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 16:11:28
Alex Keda
нет.
имя хоста передаёт от нгинкса к апачу
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 16:28:21
kmb
httpd -l
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 16:30:15
Alex Keda
Код: Выделить всё
hosting# httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
hosting#
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 16:31:05
zingel
можт собрать нормальный 2.2.9 ?
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 16:33:27
Alex Keda
а чем 2.0 ненормален?
Re: имя модуля в конфиге апача
Добавлено: 2008-09-08 16:34:31
kmb
http://stderr.net/apache/rpaf/
Судя по офсайту он дожен называться: rpaf_module
Re: имя модуля в конфиге апача
Добавлено: 2008-09-09 0:11:55
Alex Keda
Код: Выделить всё
# real ip module rpaf_module
<IfModule rpaf_module>
RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1 77.221.149.162 77.221.149.163 77.221.149.164 77.221.149.165 77.221.149.166
RPAFheader X-Forwarded-For
#RPAFheader X-Real-IP
</IfModule>
судя по тому что я вижу - это не так
Re: имя модуля в конфиге апача "Офтопик"
Добавлено: 2008-09-09 0:56:05
f_andrey
lissyara писал(а):
судя по тому что я вижу - это не так
ААА меня посчитали, хочу чтоб тоже было видно у кого какой браузер
Зато у меня браузер свежее
Re: имя модуля в конфиге апача
Добавлено: 2008-09-09 8:02:17
Alex Keda
ну, если найдёшь как - сделаю.
пытался когда-то сделать, но оно тока модераторам и админам показывает.
как вариант - сделать псевдофорум и туда всех модераторами загонять.
но это- не выход.
Re: имя модуля в конфиге апача
Добавлено: 2008-09-09 10:24:16
kmb
Ты его так загружаешь?
Код: Выделить всё
LoadModule rpaf_module libexec/apache2/mod_rpaf-2.0.so
как вариант:
Re: имя модуля в конфиге апача
Добавлено: 2008-09-09 12:11:49
Alex Keda
Код: Выделить всё
LoadModule rpaf_module libexec/apache2/mod_rpaf.so
Re: имя модуля в конфиге апача
Добавлено: 2008-09-09 14:38:19
uderik
Апач стоит за nginx'ом в конфиге:
<IfModule rpaf_module>
RPAFEnable On
RPAFproxy_ips 10.25.5.2 10.25.5.5
</IfModule>
Все работает, т.е. название модуля правильное
Re: имя модуля в конфиге апача
Добавлено: 2008-09-09 15:59:51
Alex_hha
У меня так
http.conf
LoadModule rpaf_module modules/mod_rpaf-2.0.so
rpaf.conf
RPAFenable On
RPAFproxy_ips 127.0.0.1
RPAFsethostname On
Apache/2.2.3