• 2022-06-01
    配置Apache服务器中网站的根目录的字段在下列哪个文件中。
    A: apache.conf
    B: httpd.conf
    C: httpd-vhosts.conf
    D: php.ini
  • B

    内容

    • 0

      Apache服务的配置文件是哪个? A: /etc/http/httpd.conf B: /etc/httpd/conf/httpd.conf C: /etc/http/conf/httpd.conf D: /etc/http/conf/http.conf

    • 1

      Apache服务的主配置文件位于( ) A: /var/httpd/conf B: /etc/httpd/ C: /var/httpd/ D: /etc/httpd/conf

    • 2

      将apache配置文件中的端口号直接修改为8080,可用() A: grep’s/listen.*/listen8080/’/etc/httpd/conf/httpd.conf B: sed-i’s/listen.*/listen8080/’/etc/httpd/conf/httpd.conf C: sed’/listen.*/d’/etc/httpd/conf/httpd.conf D: sed-n’/listen.*/p’/etc/httpd/conf/httpd.conf

    • 3

      Apache服务的配置文件是? A: /var/www/html B: /etc/httpd/conf/httpd.conf C: /etc/httpd D: /etc/httpd/httpd.conf

    • 4

      Apache安装完成后,主配置文档httpd.conf文件所在的目录位置为() A: /etc/sysconfig B: /etc/httpd/sysconf C: /etc/httpd/conf.d D: /etc/httpd/conf