httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manning Allan <>
Subject [users@httpd] multiple internal websites
Date Wed, 23 Sep 2020 20:59:00 GMT
Hi, I am quite familiar with hosting multiple domains on a single server using apache virtual
I rent a web server and am running 16 domains (currently) for myself, family and friends.

Now I need to host some internal only websites for my employer (employees get free wifi in
the cafeteria) to pass on information to the employees.

I have setup a virtual debian 10 server with apache installed.
I have a PC functioning as a router ( using the x86 version of DD-WRT, and
have added the various hostnames to DNSMasq (i.e. I can now nslookup "daily", "jobs", "deals"
and they all resolve to the same ip long as I put a dot after e.g. daily.,
or jobs.)

Using the default 000-default.conf file included in sites-available and sites-enabled as-is,
I am able to reach my webserver using any of those names, and see my current index.html file.

I have tried to modify the conf file as follows. (I removed all the commented out lines)

<VirtualHost jobs:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
<VirtualHost daily:80>
    ServerName daily
    ServerAlias www.daily<http://www.daily>
    DocumentRoot /var/www/html/daily
<VirtualHost deals:80>
    ServerName deals
    DocumentRoot  /var/www/html/deals

I know this would work if I was trying to go to say or
i.e. using a TLD and hosting from the internet

Ultimately I would like a separate webpage for each name i.e.  http://jobs, http://daily,

I know I can accomplish this if I set up a webserver for each name, but that seems like a

All the internet searches show me how to do this with internet facing TLD's.
Is it even possible to do this internally?
Do I need to create a dummy domain?

Any help will be greatly appreciated.

View raw message