package Cpanel::Easy::Apache::Rewrite;

# cpanel - Cpanel/Easy/Apache/Rewrite.pm          Copyright(c) 2011 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

our $easyconfig = {
    'name' => 'Rewrite',
    'url'  => 'http://httpd.apache.org/docs/[% apache_uri_version %]/mod/mod_rewrite.html',
    'note' => '!! Removing this will break certain functionality !!',
    'skip' => 1,                                                                              # Not optional.  Moved to apache's core configure flags
    'step' => {
        '0' => {
            'name'    => 'from config options',
            'command' => sub {
                my ($self) = @_;
                $self->add_to_configure( { '--enable-rewrite' => '' } );
                return ( 1, 'Ok' );
            },
        },
    },
};

1;
