Different VirtualHosts with the same port

前端 未结 2 1790
误落风尘
误落风尘 2020-12-14 18:12

I need to have two VirtualHosts with the same listen port for different projects and with different logs. Here\'s what I\'ve got:


           


        
2条回答
  •  孤城傲影
    2020-12-14 18:59

    ServerName my-project.localhost DocumentRoot /home/projects/smk/deploy ErrorLog /var/log/apache2/smk-deploy-error.log

    //Try adding Error document

    ErrorDocument 404 404.html

    There is a need to create a feedback in your application.

提交回复
热议问题