You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Agnello George <ag...@gmail.com> on 2008/06/04 12:20:09 UTC

mod_rewrite query !

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

Re: mod_rewrite query !

Posted by Eric Covener <co...@gmail.com>.
On Wed, Jun 4, 2008 at 6:20 AM, Agnello George <ag...@gmail.com> wrote:
>
> hi
> i am trying to get mod_rewrite working for my apache server

This list is for development discussion. Please use the users list:
http://httpd.apache.org/lists.html#http-users

-- 
Eric Covener
covener@gmail.com