RewriteEngine on gives 500 Internal Server Error

Discussion in 'Apache' started by bvraghav, Sep 24, 2010.

  1. #1
    With the following settings to redirect a specific hostname to a directory on apache http server 2.2,
    
    Listen 1984
    <VirtualHost *:80>
    	DocumentRoot /var/www
    </VirtualHost>
    <VirtualHost *:80 *:1984>
        Servername local.bvr
        ServerAlias local.bvr *.local.bvr
        ServerAdmin webmaster@local.bvr
        DocumentRoot /var/www/bvr/local
        
        <IfModule mod_rewrite.c>
            RewriteLog "/usr/local/var/apache2/logs/rewrite-local-bvr.log"
            RewriteLogLevel 3
        </IfModule>
    
        <Directory />
            Options -Indexes MultiViews FollowSymLinks
        </Directory>
        
        Alias /man /var/www/man
        <Directory "/var/www/man">
            AllowOverride None
            Order deny,allow
            Deny from all
            Allow from 127.0.0.0/255.0.0.0 ::1/128
        </Directory>
    </VirtualHost>
    
    Code (markup):
    when i use the following htaccess file,
    
    RewriteEngine on
    
    Code (markup):
    within a directory /var/www/bvr/local/
    and access it using the url http://local.bvr/icsedu
    i get an internal server error on my local apache server...

    however, when i access the same using the url,
    http://192.168.1.2/bvr/local/icsedu
    there is no error!!!

    What should be the correct way to configure (a virtual host, or else) so that i dont end up in such erratic behaviour on my mod_rewrites
     
    bvraghav, Sep 24, 2010 IP
  2. bvraghav

    bvraghav Member

    Messages:
    123
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    33
    #2
    sorted out
    refer: ubuntuforums.org/showthread.php?p=1473118
    [ not parsing the above link intentionally, please copy paste to your browser ]

    this thread can be considered closed now
     
    bvraghav, Sep 24, 2010 IP