You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by K R <kp...@gmail.com> on 2015/07/23 21:44:42 UTC
[users@httpd] virtual host configuration
Hi,
my customer want to configure virtual host for 5 website in one apache
environment . do i have to get 5 ip addresses from network team.
Can someone please point me on how can i achieve the same
Thanks in advance
Re: [users@httpd] virtual host configuration
Posted by ken <ge...@mousecar.com>.
On 07/23/2015 03:48 PM, Mathijs Schmittmann wrote:
> K R schreef op 7/23/2015 om 9:44 PM:
>> Hi,
>> my customer want to configure virtual host for 5 website in one apache
>> environment . do i have to get 5 ip addresses from network team.
>>
>> Can someone please point me on how can i achieve the same
>
> No, you should create 5 virtualhosts in your configuration and let the
> Apache HTTPD listen on 1 IP. Based on which website is requested
> (technically based on the 'Host' header in the HTTP request) the httpd
> will select the right DocumentRoot for serving a response.
>
> For more information about virtualhosts:
> http://wiki.apache.org/httpd/ExampleVhosts
> http://httpd.apache.org/docs/current/vhosts/examples.html
>
>>
>> Thanks in advance
>
> Best regards,
> Mathijs Schmittmann
This is called "name-based virtual hosting" if you want to run a web
search for it. That may yield some help for you also.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] virtual host configuration
Posted by Mathijs Schmittmann <in...@mathijs.info>.
K R schreef op 7/23/2015 om 9:44 PM:
> Hi,
> my customer want to configure virtual host for 5 website in one apache
> environment . do i have to get 5 ip addresses from network team.
>
> Can someone please point me on how can i achieve the same
No, you should create 5 virtualhosts in your configuration and let the
Apache HTTPD listen on 1 IP. Based on which website is requested
(technically based on the 'Host' header in the HTTP request) the httpd
will select the right DocumentRoot for serving a response.
For more information about virtualhosts:
http://wiki.apache.org/httpd/ExampleVhosts
http://httpd.apache.org/docs/current/vhosts/examples.html
>
> Thanks in advance
Best regards,
Mathijs Schmittmann
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org