VHost Not Serving

Sergey A. Osokin osa at freebsd.org.ru
Mon Jun 28 14:21:02 UTC 2021


Hi Bee,

hope you're doing well.

On Mon, Jun 28, 2021 at 09:52:17AM -0400, BeeRich Lists wrote:
> I have a VHost that isn’t serving up.  I’ve changed nothing, and it just started
> defaulting to the default_server.  
> 
> The VHost is included in a catch-all for all the other local domains (my workstation):
> include /opt/homebrew/etc/nginx/servers/*.conf;
> 
> I’ve even hard coded the VHost in its own include and even that isn’t working.

How did you test that?  Could you provide an example of a request you sent
to NGINX and response you received.  Please use curl command for an URL
with `-vk' flags, i.e.

% curl -vk http://www.example.com/

> I’ve rebooted the box, same thing.  nginx.conf tests pass.  Not sure what to be
> looking for.  The logs in the VHost directives are not even being touched.  
> 
> Would be nice to ask nginx what registered servers it sees, but I don’t think
> nginx has that ability.  
> 
> Any insight appreciated.  
> 
> Cheers, Bee

Also, could you provide the NGINX configuration file.

-- 
Sergey Osokin


More information about the nginx mailing list