Re: how to configure apache to serve data in different folders

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

 



You may need to specify a <directory> too.  Some people put the 
<directory> chunk outside the <virtualhost>, but I like to keep them 
together, so:

<VirtualHost *:80>
   ServerName localhost1
   DocumentRoot "C:/htdocs/localhost1"
   <Directory "C:/htdocs/localhost1">
     Options all FollowSymLinks
     AllowOverride All
   </Directory>
</VirtualHost>

HTH

-jmb

Muhammad Arslan Ali wrote:
>
> 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