How to debug an apache virtual host configuration?

前端 未结 7 1875
渐次进展
渐次进展 2020-12-02 05:40

Once again, I have a problem with my apache virtual host configuration. (The default configuration is used instead of my specific one).

The problem is not really the

相关标签:
7条回答
  • 2020-12-02 06:12

    Syntax check

    To check configuration files for syntax errors:

    # Red Hat-based (Fedora, CentOS) and OSX
    httpd -t
    
    # Debian-based (Ubuntu)
    apache2ctl -t
    
    # MacOS
    apachectl -t
    

    List virtual hosts

    To list all virtual hosts, and their locations:

    # Red Hat-based (Fedora, CentOS) and OSX
    httpd -S
    
    # Debian-based (Ubuntu)
    apache2ctl -S
    
    # MacOS
    apachectl -S
    
    0 讨论(0)
提交回复
热议问题