How to debug an apache virtual host configuration?

前端 未结 7 1912
渐次进展
渐次进展 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:04

    I recently had some issues with a VirtualHost. I used a2ensite to enable a host but before running a restart (which would kill the server on fail) I ran

    apache2ctl -S
    

    Which gives you some info about what's going on with your virtual hosts. It's not perfect, but it helps.

提交回复
热议问题