Serve multiple directories with Apache

前端 未结 1 1628
被撕碎了的回忆
被撕碎了的回忆 2021-02-05 04:49

I am running Apache on Ubuntu. My /var/www folder consists of two directories

/codeigniter
/wordpress

I would like mydomain.com to point to /c

相关标签:
1条回答
  • 2021-02-05 05:32

    Simple, add an Alias and another directory block inside your VirtualHost block:

    Alias /blog/ "/var/www/wordpress/"
    <Directory "/var/www/wordpress/">
        ... whatever you want ...
    </Directory>
    
    0 讨论(0)
提交回复
热议问题