Using a directory in VirtualHost ServerName

后端 未结 3 1129
[愿得一人]
[愿得一人] 2020-12-07 23:08

I\'m currently using name-based virtual host configuration, to server about 5 different websites from the same IP address, just like in the apache documentation:

<         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 23:43

    It's not possible the way you show - a VirtualHost is always just a host. But you could use an Alias.

    
    ServerName www.domain.tld
    DocumentRoot /www/domain
    
    Alias /folderpath /www/software
    
    
    

提交回复
热议问题