Server

a computer provides services or resources

What is a server?

A computer that provides services or resources. The programs on that computer makes them servers, jusk like your laptop could be a DB server if you install MySQL and let other computers access into.

Apache Web Server

Install
Logs
Port
  • the default port is 80

Config file: httpd.conf

httpd.conf is a config file used by Apache web server to control how the server responds to incomming requests. The file specifies things like which ports the server should listen on, where the web applications are located, which modules are loaded, and how security should be enforced.

After configuration, remmember restart httpd service to make it work.

Apache config file

Document root

DocumentRoot in httpd.conf specify where to look at first.

Host

Virtual host

Multiple web site can be hosted in the same server if you configure virutal hosts in httpd.conf

Include another conf file

Nginx web server

Commands

Last updated