httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Kurth <rdku...@starband.net>
Subject [users@httpd] Problem with rewrite rule could somebody help
Date Wed, 02 Jun 2004 05:21:11 GMT
Could somebody help me with this rewrite rule
This is what I have
When you type http://www.domain.com/acp it is suppose to take you to
http://www.domain.com:8080/autocontrol/index.php

RewriteLog "/var/log/rewrite.log"
RewriteLogLevel 3
RewriteEngine On
RewriteCond %{HTTP_HOST}                    ^([^:]+)
RewriteRule ^/acp/?$                        http://%1:8080/autocontrol/index.php

THIS IS THE RESULTS IN THE LOG FILE
Line 4 is what it is suppose to be but it seams to pass by that and
try to redirect to the document_root and that is not what I what it to
do.  This works just fine in Apache 3.* but not in HTTPD 2.*

192.168.0.1 - - [01/Jun/2004:22:28:26 --0700] [192.168.0.100/sid#95a7450][rid#9777180/initial]
(2) init rewrite engine with requested uri /acp
192.168.0.1 - - [01/Jun/2004:22:28:26 --0700] [192.168.0.100/sid#95a7450][rid#9777180/initial]
(3) applying pattern '^/(.*)' to uri '/acp'
192.168.0.1 - - [01/Jun/2004:22:28:26 --0700] [192.168.0.100/sid#95a7450][rid#9777180/initial]
(3) applying pattern '^/acp/?$' to uri '/acp'
192.168.0.1 - - [01/Jun/2004:22:28:26 --0700] [192.168.0.100/sid#95a7450][rid#9777180/initial]
(2) rewrite /acp -> http://192.168.0.100:8080/autocontrol/index.php
192.168.0.1 - - [01/Jun/2004:22:28:26 --0700] [192.168.0.100/sid#95a7450][rid#9777180/initial]
(3) reduce http://192.168.0.100:8080/autocontrol/index.php -> /autocontrol/index.php
192.168.0.1 - - [01/Jun/2004:22:28:26 --0700] [192.168.0.100/sid#95a7450][rid#9777180/initial]
(2) local path result: /autocontrol/index.php
192.168.0.1 - - [01/Jun/2004:22:28:26 --0700] [192.168.0.100/sid#95a7450][rid#9777180/initial]
(2) prefixed with document_root to /var/www/html/sites/home/web/autocontrol/index.php
192.168.0.1 - - [01/Jun/2004:22:28:26 --0700] [192.168.0.100/sid#95a7450][rid#9777180/initial]
(1) go-ahead with /var/www/html/sites/home/web/autocontrol/index.php [OK]
192.168.0.1 - - [01/Jun/2004:22:28:26 --0700] [192.168.0.100/sid#95a7450][rid#977b158/initial/redir#1]
(2) init rewrite engine with requested uri /error/404-file-not-found.html
192.168.0.1 - - [01/Jun/2004:22:28:26 --0700] [192.168.0.100/sid#95a7450][rid#977b158/initial/redir#1]
(3) applying pattern '^/(.*)' to uri '/error/404-file-not-found.html'
192.168.0.1 - - [01/Jun/2004:22:28:26 --0700] [192.168.0.100/sid#95a7450][rid#977b158/initial/redir#1]
(3) applying pattern '^/acp/?$' to uri '/error/404-file-not-found.html'
192.168.0.1 - - [01/Jun/2004:22:28:26 --0700] [192.168.0.100/sid#95a7450][rid#977b158/initial/redir#1]
(1) pass through /error/404-file-not-found.html

  

-- 
Best regards,
 Richard                          mailto:rdkurth@starband.net


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message