virtualhost configuration for imbricated folders

Discussion in 'Apache' started by Toky RALALA, Nov 4, 2015.

  1. #1
    Hi guys,
    I'm facing that issue :

    • I have two domain names that point to one server: example.com and test.com
    • My folder structer is as follows: /var/www/example.com/test.com/
    How do I write the virtualhost confs to have :

    • example.com pointing to /var/www/example.com ?
    • and test.com pointing to /var/www/example.com/test/com ?
    I'm used to configure pretty simple and easy virtual hosts, and it's the first time I face that kind of situation

    Thanks a lot :)
     
    Toky RALALA, Nov 4, 2015 IP