how to configure apache to serve data in different folders

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello every one

i want to configure my apache server in such a way that it can be able
to serve contents in two different folders like 

localhost1 serves directory1
localhost serves directory2

i have tried harder to work with apache virtual host but can't get my
target

    NameVirtualHost *:80

    <VirtualHost *:80>
    ServerName localhost1
    DocumentRoot c:/directory1
    </VirtualHost> 

    <VirtualHost *:80>
    ServerName localhost2
    DocumentRoot c:/directory2
    </VirtualHost> 

please help me

Muhammad Arslan Ali


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux