How to debug an apache virtual host configuration?

前端 未结 7 1894
渐次进展
渐次进展 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条回答
  •  萌比男神i
    2020-12-02 05:57

    If you are trying to debug your virtual host configuration, you may find the Apache -S command line switch useful. That is, type the following command:

    httpd -S
    

    This command will dump out a description of how Apache parsed the configuration file. Careful examination of the IP addresses and server names may help uncover configuration mistakes. (See the docs for the httpd program for other command line options).

提交回复
热议问题