课程: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Apache commands and configuration files - Red Hat Enterprise Linux教程
课程: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND
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…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。