HTTP allowed method not working in apache2

I have allowed HTTP method but still, it is not working, please help me.

<Directory />
    AllowMethods GET PUT POST HEAD OPTIONS TRACE
        Require all granted
</Directory>