httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Heal" <th...@pace2020.com>
Subject RE: [users@httpd] rewrite not working
Date Thu, 05 Oct 2006 13:47:05 GMT
I want http://192.168.2.106/twiki (the base directory path is
/var/www/twiki) to go to http://192.168.2.106/twiki/bin/view (path is
/var/www/twiki/bin/view).

But what I am getting is index.html from the base directory path.

I have changed the conf file to this and still no luck.
<Directory "/var/www/twiki/">
#        Options +FollowSymLinks
#        DirectoryIndex index.html
#        RewriteRule /index\.html /bin/view [R]
        RewriteEngine on
        RewriteRule /index\.html /bin/view [R]
        Order Allow,Deny
        Allow from all
#        Deny from env=anonymous_spider
</Directory>

I get no errors in the error log, but the access log has

192.168.2.102 - - [05/Oct/2006:09:44:55 -0400] "GET /twiki HTTP/1.1" 301 313
"-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" "-"
192.168.2.102 - - [05/Oct/2006:09:44:55 -0400] "GET /twiki/ HTTP/1.1" 304 -
"-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" "-"

Tony

-----Original Message-----
From: Boyle Owen [mailto:Owen.Boyle@swx.com] 
Sent: Thursday, October 05, 2006 2:23 AM
To: users@httpd.apache.org
Subject: RE: [users@httpd] rewrite not working

> -----Original Message-----
> From: Tony Heal [mailto:theal@pace2020.com] 
> Sent: Wednesday, October 04, 2006 10:41 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] rewrite not working
> 
> I am trying to use rewrite 

To do what? Give example of input URL and desired output URL.

> and it is not working. 

In what way? What do you want to happen, what actaully happens?

> I have a 
> debian sarge system. Here are the pertinent facts from the 
> conf file and error log. If I remove the <Driectory> block 
> the systems works fine.

It is far from clear what you are trying to achieve and what effects you
are seeing. The error message may or may not be connected to the
problem, but since the problem is under-defined, it's not possible to
say if it's relevant.

Other tips:

- put "RewriteEngine on" before any other rewrite directives
- keep it simple to start with; do you really need to invoke symlinks
right away? Try to get it "working" with static files before folding in
additional complications.
- ditto for "Deny from env=anonymous_spider"

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
>  
> 
> I know I am missing something but not sure what.
> 
>  
> 
> ii  apache         1.3.33-6sarge2 versatile, high-performance 
> HTTP server
> 
> ii  apache-common  1.3.33-6sarge2 support files for all 
> Apache webservers
> 
> ii  apache2-utils  2.0.54-5sarge1 utility programs for webservers
> 
>  
> 
> Alias /twiki/ "/var/www/twiki/"
> 
> BrowserMatchNoCase ^$ anonymous_spider
> 
> <Directory "/var/www/twiki/">
> 
>         Options +FollowSymLinks
> 
>         DirectoryIndex index.html
> 
>         RewriteRule /index\.html /bin/view [R]
> 
>         RewriteEngine on
> 
>         Order Allow,Deny
> 
>         Allow from all
> 
>         Deny from env=anonymous_spider
> 
> </Directory>
> 
>  
> 
> [Wed Oct  4 15:15:39 2006] [error] [client 192.168.2.102] 
> Options FollowSymLinks or SymLinksIfOwnerMatch is off which 
> implies that RewriteRule directive is forbidden: 
> /var/www/twiki/pub/TWiki/PatternSkin/background_input.gif
> 
>
 
 
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system.
Please also immediately destroy any hardcopies of the message. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part
of this message if you are not the intended recipient. The sender's company
reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is
authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
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


---------------------------------------------------------------------
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