Re: Urgent : Configure multiple websites

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

 



Kranti,

Have a look at this: http://wiki.apache.org/httpd/ExampleVhosts
This has example of exactly what you are trying to do, albeit in a Linux environment.

Just remember, don't use "\" rather use "/" i.e "C:/Apache/htdocs/www.example.com"

You basically need:

NameVirtualHost *:80

<VirtualHost *:80>
  Servername www.example.com
  Documentroot "C:/Apache/htdocs/www.example.com"

  <Directory "C:/Apache/htdocs/www.example.com">
    Order Allow,Deny
    Allow from all
  </Directory>
</Virtualhost>

<VirtualHost *:80>
  #Vhost 2 goes here
</Virtualhost>

<VirtualHost *:80>
  #Vhost 3 goes here
</Virtualhost>



So long as you create a <Directory> block (like the one above) for each of the documentroot's you should be ok.

Once you have this you will have a basic, and simple working Apache server



Cheers,
Tony


Kranti K K Parisa [GetSet-India] wrote:
Hi,

Somehow I found that I need to define VirtualHost definitions.

But in apache_2.2.4-win32-x86-no_ssl.msi version,
I can see a file under conf/extra folder with the name httpd-vhosts.conf, where NameVirtualHost and other tags are there.

whats the issue is, I need to define 3 websites
1) www.abc.com <http://www.abc.com> [files are there under C:\APACHE\htdocs\abc folder 2) www.xyz.com <http://www.xyz.com> [files are there under C:\APACHE\htdocs\xyzfolder 3) www.kkk.com <http://www.kkk.com> [files are there under C:\APACHE\htdocs\kkk folder

so what would be my tags

Thanks, Kranti



On 8/14/07, *Craig Huffstetler* <craig.huffstetler@xxxxxxxxx <mailto:craig.huffstetler@xxxxxxxxx>> wrote:

    Greetings,
Please see: http://www.apacheweek.com/features/vhost
    and/or
    http://httpd.apache.org/docs/1.3/vhosts/name-based.html
For information on what you are trying to accomplish. It will be
    accomplished by modifying the httpd.conf file.
Sincerely, Craig On 8/13/07, *Kranti K K Parisa [GetSet-India]* <
    kranti.parisa@xxxxxxxxx <mailto:kranti.parisa@xxxxxxxxx>> wrote:

        Hi,

        I am pretty much new to Apache. Earlier was working on IIS where
        creating websites thru UI is a bit easy.

        Please help me to create multiple websites, which are hosted on
        same computer (means with same IP address but different domain
        names) each domain should point to different folders so that
        content from website to website can be varied.

        Thanks in advance


Regards, Kranti



-- Craig Huffstetler



--
------------------
Best Regards
Kranti Kiran Kumar Parisa
Mobile: +91 - 9849 - 625 - 625
            +91 - 9391 - 438 - 738

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux