On 2019-09-01, Gustavo Rios <[email protected]> wrote:
> i would like to confgiure my obsd server as a web server.
>
> I would like to configure my web server to handle multiple domains
> without having to set each domain one by one.
>
> I mean:
> Every request for www.x.com is mapped into the root directory
> /var/web/www.x.com
>
> Got the idea ? If a new server is required, All i needed to do would
> create a directory inside /var/web with the full access string :
>
> mkdir /var/web/www.newdomain.com
>
> And i should not need to manipulate config files.
With nginx you can do e.g.
root /sites/$http_host/htdocs;
access_log /sites/$http_host/logs/access.log main;
Apache httpd has a similar method (see the manual about "Mass Virtual
Hosting").
httpd in the base OS does not support this.