ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] не подключается mod_rewrite
@ 2007-07-05 11:31 Serge
  2007-07-05 11:35 ` Владимир Черный
  0 siblings, 1 reply; 4+ messages in thread
From: Serge @ 2007-07-05 11:31 UTC (permalink / raw)
  To: ALT Linux Community

Здравствуйте!
Дистрибутив Server 4.0
apache-common-1.3.37rusPL30.23-alt3
apache-mod_php-4.4.7-alt1
apache-1.3.37rusPL30.23-alt3
lightsquid-apache-1.7.1-alt1

создаю в директории /var/www/html/lightsquid файл .htaccess такого содержания

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://my.site.org/$1 [R,L]
AuthType Basic
AuthName "Restricted Directory"
AuthUserFile /etc/httpd/Admin/pass
require user andy

в httpd.conf подключил модуль mod_rewrite
cat /etc/httpd/conf/httpd.conf|grep ^[^#\;]|grep mod_rewrite
LoadModule rewrite_module     modules/mod_rewrite.so

делаю service httpd restart
в логах получаю:
Thu Jul  5 14:27:58 2007] [error] Cannot remove module mod_rewrite.c: not 
found in module list
При заходе на страницу, в логах получаю ошибку
Thu Jul  5 14:23:21 2007] [alert] [client 
192.168.1.1] /var/www/html/lightsquid/.htaccess: Invalid command 
'RewriteEngine', perhaps mis-spelled or defined by a module not included in 
the server configuration

Почему модуль не подключается?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] не подключается mod_rewrite
  2007-07-05 11:31 [Comm] не подключается mod_rewrite Serge
@ 2007-07-05 11:35 ` Владимир Черный
  2007-07-06  5:17   ` Serge
  0 siblings, 1 reply; 4+ messages in thread
From: Владимир Черный @ 2007-07-05 11:35 UTC (permalink / raw)
  To: ALT Linux Community

Вообще-то еще надо одну строчку раскомментить :)
AddModule mod_rewrite.c

2007/7/5, Serge <skompan@kspu.kr.ua>:
> Здравствуйте!
> Дистрибутив Server 4.0
> apache-common-1.3.37rusPL30.23-alt3
> apache-mod_php-4.4.7-alt1
> apache-1.3.37rusPL30.23-alt3
> lightsquid-apache-1.7.1-alt1
>
> создаю в директории /var/www/html/lightsquid файл .htaccess такого содержания
>
> RewriteEngine On
> RewriteCond %{SERVER_PORT} 80
> RewriteRule ^(.*)$ https://my.site.org/$1 [R,L]
> AuthType Basic
> AuthName "Restricted Directory"
> AuthUserFile /etc/httpd/Admin/pass
> require user andy
>
> в httpd.conf подключил модуль mod_rewrite
> cat /etc/httpd/conf/httpd.conf|grep ^[^#\;]|grep mod_rewrite
> LoadModule rewrite_module     modules/mod_rewrite.so
>
> делаю service httpd restart
> в логах получаю:
> Thu Jul  5 14:27:58 2007] [error] Cannot remove module mod_rewrite.c: not
> found in module list
> При заходе на страницу, в логах получаю ошибку
> Thu Jul  5 14:23:21 2007] [alert] [client
> 192.168.1.1] /var/www/html/lightsquid/.htaccess: Invalid command
> 'RewriteEngine', perhaps mis-spelled or defined by a module not included in
> the server configuration
>
> Почему модуль не подключается?
>
> _______________________________________________
> Community mailing list
> Community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community


-- 
С уважением,
Владимир Черный
Начальник отдела образовательных проектов ALT Linux
mailto: black@altlinux.ru
Jabber: black@altlinux.org
ICQ: 199158712

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] не подключается mod_rewrite
  2007-07-05 11:35 ` Владимир Черный
@ 2007-07-06  5:17   ` Serge
  2007-07-06  6:55     ` Владимир Черный
  0 siblings, 1 reply; 4+ messages in thread
From: Serge @ 2007-07-06  5:17 UTC (permalink / raw)
  To: ALT Linux Community

> Вообще-то еще надо одну строчку раскомментить :)
> AddModule mod_rewrite.c
Сегодня обратил внимание, что на другом web сервере (Master 2.4) в httpd.conf 
AddModule mod_rewrite.c закоментирован и mod_rewrite работает
apache-common-1.3.37rusPL30.22-alt0.M24.1
apache-mod_perl-1.3.37rusPL30.22-alt0.M24.1
apache-1.3.37rusPL30.22-alt0.M24.1
что то поменялось со времен Master24?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] не подключается mod_rewrite
  2007-07-06  5:17   ` Serge
@ 2007-07-06  6:55     ` Владимир Черный
  0 siblings, 0 replies; 4+ messages in thread
From: Владимир Черный @ 2007-07-06  6:55 UTC (permalink / raw)
  To: ALT Linux Community

2007/7/6, Serge <skompan@kspu.kr.ua>:
> > Вообще-то еще надо одну строчку раскомментить :)
> > AddModule mod_rewrite.c
> Сегодня обратил внимание, что на другом web сервере (Master 2.4) в httpd.conf
> AddModule mod_rewrite.c закоментирован и mod_rewrite работает
> apache-common-1.3.37rusPL30.22-alt0.M24.1
> apache-mod_perl-1.3.37rusPL30.22-alt0.M24.1
> apache-1.3.37rusPL30.22-alt0.M24.1
> что то поменялось со времен Master24?
Очень странно. Я не разработчик, поэтому не скажу. но со времен аж
2.2. всегда надо было обе строки. Когда-то даже в самом конфиге было
такое напоминание.

> _______________________________________________
> Community mailing list
> Community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community


-- 
С уважением,
Владимир Черный
Начальник отдела образовательных проектов ALT Linux
mailto: black@altlinux.ru
Jabber: black@altlinux.org
ICQ: 199158712

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-06  6:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-05 11:31 [Comm] не подключается mod_rewrite Serge
2007-07-05 11:35 ` Владимир Черный
2007-07-06  5:17   ` Serge
2007-07-06  6:55     ` Владимир Черный

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git