httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hracek, Petr" <petr.hra...@siemens-enterprise.com>
Subject [users@httpd] VirtualHost rewrite and mod_negotiation
Date Tue, 28 Apr 2009 12:08:01 GMT
Hello all,
 
sorry for bother you with issue both I think that I misunderstand how the mod_negotiation
and mod_rewrite work is working.
 
In my apache I have enabled Virtual Host called:
 
<VirtualHost _default_:443>
SSLEngine on
DocumentRoot "/opt/apache/htdocs/ssldocs"
AddType text/html .shtml
 
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteMap unity txt:/opt/apache/conf/unity.map
RewriteRule ^/(common|public)/(.*)  /opt/unity/htdocs/$1/$2 [L]
RewriteRule ^/([^/]+)$              ${unity:$1|/$1} [L]
RewriteRule ^/([^/]+)/(.*)  ${unity:$1|/opt/apache/htdocs/ssldocs/$1}/$2 [L]
RewriteLog "/var/log/apache2/rewrite_log"
RewriteLogLevel 3

<Directory />
    Options +Includes Indexes +MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    MultiviewsMatch Any
    SetOutputFilter INCLUDES
</Directory>
 
In /opt/apache/conf/unity.map is mentioned:
APPL /opt/appl/htdocs
 
In the directory /opt/appl/htdocs is:
test:/var/log/apache2 # ll /opt/appl/htdocs/index.*
-rw-r----- 1 hg3550m unity 887 Mar 27 10:12 /opt/appl/htdocs/index.shtml.de
-rw-r----- 1 hg3550m unity 893 Mar 27 10:12 /opt/appl/htdocs/index.shtml.en_US
test:/var/log/apache2 #

Unfortunatelly when I go to the page https://localhost/APPL/index.shtml <https://localhost/APPL/index.shtml>

then it show me in the /var/log/apache2/error_log "Negotiation: discovered file(s) matching
request: /opt/appl/htdocs/index.shtml (None could be negotiated)".
Rewrite Rule is working properly but negotiation is not working well.
 
When I am inserting following lines to the configuration file:
<Directory "/opt/appl/htdocs">
    Options +Includes +Multiviews
    AuthType TestAuth
    require auth-validation
    Satisfy any
</Directory>
then the negotiation is working.
 
I thought that all directories under DocumentRoot including RewriteMap has the same setting
as <Directory /> flag, right?
Could you please explain me why I am getting error from Negotiation module? Error code which
is mentioned in apache is HTTP 404.
Does it mean the for each directory which is not under /opt/apache/htdocs/ssldocs has to be
mentioned special directive Directory?
What did I set incorrectly?
 
Could you please help me what is the proper configuration?


Best regards
Petr
 
regards / S pozdravem
 
Ing. Petr Hráček
IT Services and Enterprise Communications
Developer
 
Bidláky 20, budova Mediahall
639 00 Brno
 
Tel.:  +420 533 337 267
Fax.: +420 533 337 252
mailto: petr.hracek@siemens-enterprise.com <mailto:petr.hracek@siemens-enterprise.com>

www.isec-it.com <http://www.isec-it.com/> 
 
Společnost: iSEC - IT Services and Enterprise Communications s.r.o.
Sídlo: Brno, Bidláky 20, 639 00
Obchodní firma je zapsána v obchodním rejstříku u Krajského soudu v Brně v oddílu
C, ve složce 54602. 
IČ: 27721710
 
POZOR!

Tento e-mail může obsahovat obchodní tajemství nebo jiné utajované a důvěrné informace.
Pokud jste tento e-mail obdrželi omylem, oznamujeme Vám tímto, že je přísně zakázáno
jej jakýmkoli způsobem upravovat, kopírovat nebo šířit. Neprodleně nás prosím informujte
a tento e-mail zničte. Děkujeme za spolupráci.

 

Important Note!

This e-mail  may contain trade secrets or privileged, undisclosed or otherwise confidential
information. If you have received this e-mail in error, you are hereby notified that any review,
copying or distribution of it is strictly prohibited. Please inform us immediately and destroy
the original transmittal. Thank you for your cooperation.

 
 

Mime
View raw message