Tuesday, 3 February 2015

How to configure Apache Server on CentOS, RedHat, Linux

  1. Set the apache service to start on boot
    chkconfig --levels 235 httpd on
  2. Enable name-based virtual hosting on port 80
    1. Open the httpd configuration file located at/etc/httpd/conf/httpd.conf
    2. Un-comment the line containing the textNameVirtualHost *:80
    3. Save the file
    4. Restart the Apache HTTP Server daemon
      service httpd restart
      Note: Ignore the "NameVirtualHost *:80 has no VirtualHosts" warning for now.

No comments:

Post a Comment