Mailing List Archive

Serve multiple websites (not sub-domains) from port 80
Hi,

I am planning to make changes to Apache web server so that it can serve
multiple websites (not sub-domains) from port 80.

This will save money for someone who has more than one website. That person
need not buy more than one hosting plan, one hosting plan will suffice.

Based on the incoming base URL, Apache web server will decide from which
directory to serve the index file or other files. There will be a user file
where user can list which website is mapped to which directory.

For example:

abcd:com:/abcd
xyz.com:/xyz

I am not familiar with Apache web server code so can someone point me to
few files which I need to modify to implement this feature.

Regards,
Amit
Re: Serve multiple websites (not sub-domains) from port 80 [ In reply to ]
You should use Name based hosting and that will serve your purpose.

On Mon, Apr 4, 2022 at 8:48 PM A <amit.general.misc@gmail.com> wrote:

> Hi,
>
> I am planning to make changes to Apache web server so that it can serve
> multiple websites (not sub-domains) from port 80.
>
> This will save money for someone who has more than one website. That
> person need not buy more than one hosting plan, one hosting plan will
> suffice.
>
> Based on the incoming base URL, Apache web server will decide from which
> directory to serve the index file or other files. There will be a user file
> where user can list which website is mapped to which directory.
>
> For example:
>
> abcd:com:/abcd
> xyz.com:/xyz
>
> I am not familiar with Apache web server code so can someone point me to
> few files which I need to modify to implement this feature.
>
> Regards,
> Amit
>