Apache http server problems

前端 未结 2 1861
难免孤独
难免孤独 2021-02-19 13:59

I am using Apache version 2.2.20 (ubuntu) and attempting to use a custom httpd.conf setup however I am getting the following error message and would appreciate any guidance that

2条回答
  •  攒了一身酷
    2021-02-19 14:22

    Look: "module xxx_module is already loaded"

    Answer: You are loading those modules more than once. Try a search and comment/delete problematic lines:

    In Centos/RHEL:

    grep ssl_module -rI /etc/httpd/*   
    /etc/httpd/conf/httpd.conf:LoadModule ssl_module /usr/lib64/httpd/modules/mod_ssl.so
    /etc/httpd/conf.d/ssl.conf:LoadModule ssl_module modules/mod_ssl.so
    

    In this case ^ I commented out line in /etc/httpd/conf/httpd.conf so all SSL stuff live in /etc/httpd/conf.d/ssl.conf

    Same for rewrite_module

    grep rewrite_module -rI /etc/httpd/*
    

    In Debian/Ubuntu:

    grep ssl_module -rI /etc/apache2/*
    

提交回复
热议问题