From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Apache commands and configuration files

Apache commands and configuration files - Red Hat Enterprise Linux Tutorial

From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

Start my 1-month free trial

Apache commands and configuration files

- [Instructor] There are commands included with Apache that we can use to manage it. The apachectl command allows us to start, stop, restart, and reload the service. By using a separate command, we can give a non-root user privileges using sudo to administer the web server. Htpasswd is used to create passwords for basic auth authentication. Httpd is actually the server binary, but it can be used to get the Apache version as well as test the configuration file for syntax errors. The Apache configuration files are in /etc/httpd. The main configuration file is stored in /etc/httpd/conf, and is named httpd.conf. We used to edit the main configuration file directly, but if we're adding configuration directives such as VirtualHost, it's better to add a new configuration file to /etc/httpd/conf.d. The files in this directory are processed after the main configuration file. Also inside /etc/httpd/conf.d are three other configuration files. The autoindex.conf file configures mod_autoindex…

Contents