How to debug an apache virtual host configuration?

前端 未结 7 1873
渐次进展
渐次进展 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 05:52

    Here's a command I think could be of some help :

    apachectl -t -D DUMP_VHOSTS
    

    You'll get a list of all the vhosts, you'll know which one is the default one and you'll make sure that your syntax is correct (same as apachectl configtest suggested by yojimbo87).

    You'll also know where each vhost is declared. It can be handy if your config files are a mess. ;)

提交回复
热议问题