mod_rewrite

Discussion in 'Installation/Configuration' started by zer0_g666, Jun 13, 2006.

  1. zer0_g666

    zer0_g666 Member

    Hi,

    I have a suse9.3 system with the latest ispconfig installed and working fine.

    How do i install / enable rewrite for apache2

    its in /etc/sysconfig/apache2

    Code:
    APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation
    setenvif ssl suexec userdir php4 php5 rewrite"
    but i still get internal server error ..

    in my .htaccess file

    Code:
    Options +FollowSymlinks
    RewriteEngine on
    
    any ideas anyone ?

    cheers
     
  2. zer0_g666

    zer0_g666 Member

    I found my answer here ;)

    http://www.howtoforge.com/forums/showthread.php?t=1853

    /etc/apache2/httpd.conf

    Code:
    
    <Directory /srv/www/*/web>
        Options +Includes -Indexes
        #  AllowOverride None
        #  AllowOverride Indexes AuthConfig Limit FileInfo
        AllowOverride All
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    <Directory /srv/www/*/user/*/web>
        Options +Includes -Indexes
        #  AllowOverride None
        #  AllowOverride Indexes AuthConfig Limit FileInfo
        AllowOverride All
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    
    
     

Share This Page