According to Apache documentation:
ServerName inheritance
It is best to always explicitly list a ServerName in every name-based virtual host.
If a VirtualHost doesn't specify a ServerName, a server name will be inherited from the base server configuration. If no server name was specified globally, one is detected at startup through reverse DNS resolution of the first listening address. In either case, this inherited server name will influenced name-based virtual host resolution, so it is best to always explicitly list a ServerName in every name-based virtual host.
ServerName requires FQDN try change sitedemo1 in sitedemo1.localhost in configuration file (/etc/hosts and sitedemo1.conf)
Add ServerAlias with:
ServerName sitedemo1.localhost
MySQL see timezone (Windows Server) and SELECT NOW() return timestamp in Zone but PHP not. PHP still return UTC (php.ini set timezone not UTC but Berlin).
So when you have cronjob with PHP and access MySQL pay attention to timezone. In live server, normally both time MySQL NOW() and PHP date() are the same, but in test, dev server (specially Windows) may be have problem.
ServerName inheritance
It is best to always explicitly list a ServerName in every name-based virtual host.
If a VirtualHost doesn't specify a ServerName, a server name will be inherited from the base server configuration. If no server name was specified globally, one is detected at startup through reverse DNS resolution of the first listening address. In either case, this inherited server name will influenced name-based virtual host resolution, so it is best to always explicitly list a ServerName in every name-based virtual host.
ServerName requires FQDN try change sitedemo1 in sitedemo1.localhost in configuration file (/etc/hosts and sitedemo1.conf)
Add ServerAlias with:
ServerName sitedemo1.localhost
MySQL see timezone (Windows Server) and SELECT NOW() return timestamp in Zone but PHP not. PHP still return UTC (php.ini set timezone not UTC but Berlin).
So when you have cronjob with PHP and access MySQL pay attention to timezone. In live server, normally both time MySQL NOW() and PHP date() are the same, but in test, dev server (specially Windows) may be have problem.
Comments
Post a Comment