I noticed after updating to 10.1 that the "virtual hosts" I set up with NetInfo Manager and through httpd.conf are suddenly being overridden in a weird way.
I was using a few of these virtual hosts to specify subdirectories where I had different tools I had written in PHP and MySQL. For example, the ~/username/Sites/ directory was myhostname.com, the ~/username/Sites/SQL/ directory was set to sql.myhostname.com, etc.
But after updating to 10.1 the permissions I had set up in the 'mysql' database weren't any good any more because my hostname was suddenly resolving to 'localhost.pop.ptld.qwest.net' - a hostname that was clearly being supplied by my DSL router. So if I tried to connect to MySQL from my PHP script the error would come back that I didn't have permission to connect from that domain!
Likewise when my iBook is unconnected to any network I'll log into the terminal and the hostname shown in the terminal prompt will be 'localhost.' But when I hook it up to the network at the office it becomes 'dhcp1142.' Clearly something has changed in the way that NetInfo is managing my hosts / domains.... I'm guessing that it's using the DNS / DHCP server to set the domain / host names. How can I set up NetInfo so that it behaves as it did in 10.0.x?
I was using a few of these virtual hosts to specify subdirectories where I had different tools I had written in PHP and MySQL. For example, the ~/username/Sites/ directory was myhostname.com, the ~/username/Sites/SQL/ directory was set to sql.myhostname.com, etc.
But after updating to 10.1 the permissions I had set up in the 'mysql' database weren't any good any more because my hostname was suddenly resolving to 'localhost.pop.ptld.qwest.net' - a hostname that was clearly being supplied by my DSL router. So if I tried to connect to MySQL from my PHP script the error would come back that I didn't have permission to connect from that domain!
Likewise when my iBook is unconnected to any network I'll log into the terminal and the hostname shown in the terminal prompt will be 'localhost.' But when I hook it up to the network at the office it becomes 'dhcp1142.' Clearly something has changed in the way that NetInfo is managing my hosts / domains.... I'm guessing that it's using the DNS / DHCP server to set the domain / host names. How can I set up NetInfo so that it behaves as it did in 10.0.x?