Home » Php » php – Microsoft push notification service 403 – Forbidden: Access is denied

php – Microsoft push notification service 403 – Forbidden: Access is denied

Posted by: admin July 12, 2020 Leave a comment

Questions:

I am trying to send secure windows push notifications from my php server with valid ssl certificate and I got this error:

403 – Forbidden: Access is denied.

You do not have permission to view this directory or page using the credentials that you supplied.

I uploaded certificate to dev.windowsphone.com and HttpNotificationChannel where serviceName is my Common Name from certificate. I got https uri from HttpNotificationChannel but when I call it from server I got error. Does anyone know what the problem is?

When I call unsecure request from server everything is ok.

How to&Answers:

You will need to allow access in the directory in Apache. Assuming you have super user access to the server, and I don’t know how your server is set up, but you will need to set your directory like this:

<Directory "C:/Your/Directory/With/No/Trailing/Slash">
   Allow from all
   Require all granted
</Directory>