0

when I try to apply coupon code in server its showing 403 forbidden error . But its working on local machine. below the error. please check it.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
 <html><head>
     <title>403 Forbidden</title>
     </head><body>
     <h1>Forbidden</h1>
     <p>You don't have permission to access 
     /Amberly/rest/default/V1/carts/mine/coupons/AMBIBSBHTTP
      on this server.<br />
      </p>
      <p>Additionally, a 403 Forbidden
       error was encountered while trying to use an ErrorDocument to handle the request.</p>
  </body></html>

how can i solve this issue?.

2
  • which OS is running on your local and on the server? it could be because of permissions. Check these two things 1. Did you create rest user with proper permissions? 2. Is the error same with HTTP and HTTPS? Commented Mar 7, 2018 at 8:45
  • os ubuntu 14.04. how to create rest user?. how to give rest permission to all users.
    – Midlaj
    Commented Mar 7, 2018 at 8:53

1 Answer 1

1

This error caused by apache2 server configuration.

When I edit httpd.conf file with following code the error fixed. And its working fine.

<Directory "your directory here">
    Order allow,deny
    Allow from all
    # New directive needed in Apache 2.4.3: 
    Require all granted
</Directory>
5
  • in log file: ::::: AH01797: client denied by server configuration: /home/bbppco/mg.project.co/vendor/saveprofile --- i have same issue how i can fix that....... Commented Jun 12, 2019 at 5:08
  • Did you checked your httpd.conf file?
    – Midlaj
    Commented Jun 13, 2019 at 7:04
  • how i can check Commented Jun 13, 2019 at 7:05
  • stackoverflow.com/questions/44559274/… Commented Jun 13, 2019 at 7:06
  • <Directory "your directory here"> in servers which type of path Commented Jun 13, 2019 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.