Linux UNIX

Red Hat & CentOS – Setting Up Virtual Hosts

For this quick and simple example, I will enable Virtual Hosts and configure to point at /var/www/ # vi /etc/httpd/conf/httpd.conf # mkdir /var/www/ # mkdir /var/www/ Add the below line to /private/etc/apache2/extra/httpd-vhosts.conf or you will get the below error when restarting httpd. ServerName localhost “Starting httpd: httpd: apr_sockaddr_info_get() failed for YOURHOSTNAMEhttpd: Could not reliably determine the […]