httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Agnello George" <agnello.dso...@gmail.com>
Subject mod_rewrite query !
Date Wed, 04 Jun 2008 10:20:09 GMT
hi
i am trying to get mod_rewrite working for my apache server ( apache 2.2.8
).

my virtual host files  ( vhost.conf ) looks something like this :

##########################################################################

NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin admin@agnello.sys.qualiproj.com
ServerName agnello.sys.qualiproj.qualispace.com
ServerAlias www.agnello.sys.qualiproj.com
DocumentRoot /websites/agnello.com/web
<Directory /websites/agnello.com/web/*>
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    AllowOverride FileInfo AuthConfig Limit
    Order allow,deny
    Allow from all
RewriteEngine on
RewriteBase /
RewriteRule ^bob.html$ index.html
</Directory>

ErrorLog /websites/agnello.com/logs/agnello.sys.qualiproj.error_log
CustomLog /websites/agnello.com/logs/agnello.sys.qualiproj.access_logcombined
TransferLog "|/usr/local/apache2/bin/rotatelogs /websites/
agnello.com/logs/agnello.sys.qualiproj.access_log 5M"
TransferLog "|/usr/local/apache2/bin/rotatelogs /websites/
agnello.com/logs/agnello.sys.qualiproj.error_log 5M"

</VirtualHost>
######################################################################
My basic aim is to check if mod_rewrirte works .  In the httpd.conf the
following lines exist so the modules are loaded !!

LoadModule ssl_module modules/mod_ssl.so
LoadModule rewrite_module modules/mod_rewrite.so

 i  add a ( very simple ) rule  to rewriite on the url anything matching the
pattern bob.html  ---- to index.html
But when i try to browse
*http://<http://www.agnello.sys.qualiproj.quali.com/bob.html>
*www.agnello.sys.qualiproj.com/bob.html its still shows me the html page for
bob.html and not index.html.

no error logs found !!

Can any one help me with this.

Thanks
-- 
Regards
Agnello Dsouza
www.linux-vashi.blogspot.com

Mime
View raw message