'LinKin Posted July 4, 2016 Posted July 4, 2016 Hello, I was trying to connect remotely to a database using a domain name as host instead of an IP address and it didn't succeed. So I'm wondering if it's the dbConnect function itself which doesn't accept a domain name as host or the failure to connect is caused by another factor. Regards, LinKin.
Captain Cody Posted July 4, 2016 Posted July 4, 2016 Is the domain name itself linked correctly to the IP? Also some times the domain name has the ports in it. So that may mess it up.
'LinKin Posted July 5, 2016 Author Posted July 5, 2016 The domain is pointing to a different IP from the VPS's public IP. This is for reverse proxy purposes. The reverse proxy allows me to access my web directory typing in the browser the URL (domain name). It doesn't work with the IP.
ALw7sH Posted July 5, 2016 Posted July 5, 2016 dbConnect does accept domain as a host Your problem might be because of your mysql account settings
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now