Good day!
There was such a question. There is a site on Azure Websites. And there is a virtual machine on which Ubuntu + MySQL is deployed. By the name of the DNS I go to MySQL without any problems. Port 3306 is open on an Ubuntu machine, endpoints for 3306 are configured.
But when I try to connect from a PHP site on Azure, I get the following error:
Forbidden by its access permissions.
Here is my web.config
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="rule 1h" stopProcessing="true"> <match url="^(.*)\?*$" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="/index.php/{R:1}" appendQueryString="true" /> </rule> </rules> </rewrite> </system.webServer> </configuration> thank you in advance!