LINUX.ORG.RU

Есть ли в apache gentoo mod_rewrite


0

0

Ставлю abills все по инструкции, за исключением того, что radius и apache из портаджей сейчас пришло времы проверки работоспособности.

Набираю http://192.168.***.***/abills/ получаю

Not Found

The requested URL /abills/ was not found on this server.

Вопрос есть ли в apache gentoo поддержка mod_rewrite в nano -w /etc/apache2/httpd.conf встречается mod_rewrite.so но

proxy ~ # find / -name rewrite

/usr/include/postgresql/libpq-4/server/rewrite

/usr/include/postgresql/server/rewrite

на сколько сам могу судить он даже не пытается заглянуть в нужный /usr/abills/

в конце файла /etc/apache2/httpd.conf добавлено следующее

#Abills version 0.3

Listen 9443

<VirtualHost _default_:9443>

DocumentRoot "/usr/abills/cgi-bin"

#ServerName www.example.com:9443

#ServerAdmin admin@example.com

ErrorLog /var/log/httpd/abills-error.log

#TransferLog /var/log/httpd/abills-access.log

CustomLog /var/log/httpd/abills-access_log common

<IfModule ssl_module>

# SSL Engine Switch:

# Enable/Disable SSL for this virtual host.

SSLEngine on

SSLCipherSuite

ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

SSLCertificateFile /usr/abills/Certs/server.crt

SSLCertificateKeyFile /usr/abills/Certs/server.key

<FilesMatch "\.(cgi)$">

SSLOptions +StdEnvVars

</FilesMatch>

BrowserMatch ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

CustomLog /var/log/abills-ssl_request.log \

"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</IfModule>

# User interface

<Directory "/usr/abills/cgi-bin">

<IfModule ssl_module>

SSLOptions +StdEnvVars

</IfModule>

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteCond %{HTTP:Authorization} ^(.*)

RewriteRule ^(.*) - [E=HTTP_CGI_AUTHORIZATION:%1]

Options Indexes ExecCGI SymLinksIfOwnerMatch

</IfModule>

AddHandler cgi-script .cgi

Options Indexes ExecCGI FollowSymLinks

AllowOverride none

DirectoryIndex index.cgi

Order allow,deny

Allow from all

<Files ~ "\.(db|log)$">

Order allow,deny

Deny from all

</Files>

#For hotspot solution

#ErrorDocument 404 "/abills/"

#directoryIndex "/abills" index.cgi

</Directory>

#Admin interface

<Directory "/usr/abills/cgi-bin/admin">

<IfModule ssl_module>

SSLOptions +StdEnvVars

</IfModule>

AddHandler cgi-script .cgi

Options Indexes ExecCGI FollowSymLinks

AllowOverride none

DirectoryIndex index.cgi

order deny,allow

allow from all

</Directory>

</VirtualHost>

Вопрос что делать собирать apache вручную (без emerge) не очень то хочется да и вобще в этом ли причина???


log

[Fri Jun 22 10:59:47 2007] [error] [client 192.168.200.213] File does not exist: /var/www/localhost/htdocs/egroupware

[Fri Jun 22 10:59:57 2007] [error] [client 192.168.200.213] File does not exist: /var/www/localhost/htdocs/egroupware

[Fri Jun 22 12:34:11 2007] [notice] caught SIGTERM, shutting down

[Fri Jun 22 12:34:12 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)

[Fri Jun 22 12:34:13 2007] [notice] Digest: generating secret for digest authentication ...

[Fri Jun 22 12:34:13 2007] [notice] Digest: done

[Fri Jun 22 12:34:14 2007] [notice] Apache configured -- resuming normal operations

[Fri Jun 22 12:41:46 2007] [notice] caught SIGTERM, shutting down

[Fri Jun 22 12:41:48 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)

[Fri Jun 22 12:41:48 2007] [notice] Digest: generating secret for digest authentication ...

[Fri Jun 22 12:41:48 2007] [notice] Digest: done

[Fri Jun 22 12:41:49 2007] [notice] Apache configured -- resuming normal operations

[Fri Jun 22 14:17:36 2007] [notice] caught SIGTERM, shutting down

[Fri Jun 22 14:20:47 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)

[Fri Jun 22 14:20:47 2007] [notice] Digest: generating secret for digest authentication ...

[Fri Jun 22 14:20:47 2007] [notice] Digest: done

[Fri Jun 22 14:20:49 2007] [notice] Apache configured -- resuming normal operations

[Fri Jun 22 15:04:43 2007] [error] [client 192.168.200.213] File does not exist: /var/www/localhost/htdocs/favicon.ico, referer: http://192.168.200.208/

[Fri Jun 22 15:16:19 2007] [notice] caught SIGTERM, shutting down

[Fri Jun 22 15:16:21 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)

[Fri Jun 22 15:16:21 2007] [notice] Digest: generating secret for digest authentication ...

[Fri Jun 22 15:16:21 2007] [notice] Digest: done

[Fri Jun 22 15:16:22 2007] [notice] Apache configured -- resuming normal operations

[Fri Jun 22 15:30:42 2007] [error] [client 192.168.200.90] File does not exist: /var/www/localhost/htdocs/favicon.ico, referer: http://192.168.200.208/egroupware/home/index.php

[Fri Jun 22 15:44:58 2007] [error] [client 192.168.200.213] File does not exist: /var/www/localhost/htdocs/egroupware/function.mysql-pconnect, referer: http://192.168.200.208/egroupware/login.php

[Fri Jun 22 15:51:46 2007] [error] [client 192.168.200.213] File does not exist: /var/www/localhost/htdocs/abills

[Fri Jun 22 15:56:16 2007] [error] [client 192.168.200.213] File does not exist: /var/www/localhost/htdocs/abills

[Fri Jun 22 16:29:33 2007] [notice] caught SIGTERM, shutting down

[Fri Jun 22 16:29:36 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)

[Fri Jun 22 16:29:37 2007] [notice] Digest: generating secret for digest authentication ...

[Fri Jun 22 16:29:37 2007] [notice] Digest: done

[Fri Jun 22 16:29:40 2007] [notice] Apache configured -- resuming normal operations

sdm
() автор топика
Ответ на: комментарий от generatorglukoff

Это в mod_rewrite дело ??? На сколько сам сейчас почитал то да (Mod_rewrite использует 2 из этих перехватчиков: транслятор из URL в имя файла используемый после считывания HTTP запроса, но до начала какой-либо ...)

есть ли ебилды с поддержкой этого модуля??? Эх обидно придется наверное самому собирать.

sdm
() автор топика
Ответ на: комментарий от sdm

Собери apache2.2 (accept_keywords=~x86) с USE="no-suexec" ; + у тебя бонально дериктория не та

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.