On 04/16/2021 08:23 PM, Jonathon Koyle wrote:
>> The OP, ie me, just read up on virtual host configuration. I now understand 
>> that it is not possible to have site1.conf and site2.conf as in my first 
>> e-mail where I wanted to access the different sites using 1.2.3.4/site1 and 
>> 1.2.3.4/site2 etc.
>>
>> My reading suggests that instead accessing them as site1.1.2.3.4 and 
>> site2.1.2.3.4 should work with the following minimal conf
> ServerName should either be a hostname or an IP Address.  Httpd is
> going to compare this value to the HOST header in an HTTP request and
> it should match what you are putting in host section of the URL  For
> example, if you owned example.com the ServerName directives would
> site1.example.com and site2.example.com.
>
> If you are just testing and don't have a domain or DNS, you could just
> set SeverName to site1 and site2 and add entries in your host file
> that map to the IP address
>
> 1.2.3.4      site1
> 1.2.3.4      site2
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
I am using one external IP -address for now so you are saying the ServerName 
should be site1.a.b.c.d and site2.a.b.c.d, respectively, where a.b.c.d is the 
same?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to