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

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