Apache Server
Apache HTTP Server is an open-source HTTP server for modern operating systems including UNIX and Windows NT. For more information on Apache HTTP Server, you can visit their website athttpd.apache.org.
Version
This documentation was written for Apache HTTP Server 2.2.3 but may be usefull with other versions.
How to install Apache Server on CentOS, RedHat, Linux
- Install Apache HTTP Server
yum install httpd
Note: This is typically installed with CentOS by default
How to configure Apache Server on CentOS, RedHat, Linux
- Set the apache service to start on boot
chkconfig --levels 235 httpd on - Enable name-based virtual hosting on port 80
- Open the httpd configuration file located at/etc/httpd/conf/httpd.conf
- Un-comment the line containing the textNameVirtualHost *:80
- Save the file
- Restart the Apache HTTP Server daemon
service httpd restart
Note: Ignore the "NameVirtualHost *:80 has no VirtualHosts" warning for now.
How to test Apache Server on CentOS, RedHat, Linux
- Visit localhost in your web browser. You should see an Apache Test Page.
沒有留言:
張貼留言