Hi there. I used:
curl alpha.local It returned hq3.local source. Here’s the main nginx.conf then the included domain.conf: worker_processes auto; load_module /opt/homebrew/opt/passenger/libexec/modules/ngx_http_passenger_module.so; error_log /opt/homebrew/var/log/error.log notice ; pid /opt/homebrew/var/run/nginx.pid; events { worker_connections 256; } http { server_names_hash_bucket_size 64; access_log /opt/homebrew/var/log/access.log; error_log /opt/homebrew/var/log/error_gen.log; passenger_root /opt/homebrew/opt/passenger/libexec/src/ruby_supportlib/phusion_passenger/locations.ini; passenger_ruby /Users/rich/.rbenv/shims/ruby; # pass_info in terminal passenger_friendly_error_pages on; server { listen 80 default_server; server_name hq3.local; # hq.local include /opt/homebrew/etc/nginx/mime.types; access_log /opt/homebrew/var/log/access_HQ.log; error_log /opt/homebrew/var/log/error_HQ.log warn; error_page 404 /Users/rich/Sites/HQ/public/404.html; root /Users/rich/Sites/HQ/public; passenger_enabled on; passenger_base_uri /; location / { autoindex off; # try_files $uri $uri/ /index.html?$query_string; index index.html; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } sendfile off; } server { listen 80; server_name charlie.local; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name charlie.local; # charlie.local ssl_certificate /Users/rich/Sites/charlie/charlie.local.pem; ssl_certificate_key /Users/rich/Sites/charlie/charlie.local-key.pem; ssl_ciphers ALL:!aNULL:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; include /opt/homebrew/etc/nginx/mime.types; access_log /opt/homebrew/var/log/access_charlie.log; error_log /opt/homebrew/var/log/error_charlie.log warn; error_page 404 /404.html; root /Users/rich/Sites/charlie/public; passenger_enabled on; passenger_base_uri /; } server { listen 80; server_name vp.local; # vp.local include /opt/homebrew/etc/nginx/mime.types; access_log /opt/homebrew/var/log/access_VP.log; error_log /opt/homebrew/var/log/error_VP.log warn; error_page 404 /404.html; root /Users/rich/Sites/VP6/public; passenger_enabled on; passenger_base_uri /; location / { autoindex off; index index.html; } location = /img/favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } sendfile off; } include /opt/homebrew/etc/nginx/servers/*.conf; # resolution problem here # include /opt/homebrew/etc/nginx/servers/alpha.conf; # include /opt/homebrew/etc/nginx/servers/bravo.conf; } alpha.conf: server { server_name alpha.local listen 80; include /opt/homebrew/etc/nginx/mime.types; access_log /opt/homebrew/var/log/access_alpha.log; error_log /opt/homebrew/var/log/error_alpha.log warn; error_page 404 /404.html; client_max_body_size 12M; root /Users/rich/Sites/alpha/public; passenger_enabled on; passenger_base_uri /; location = /img/favicon.ico { access_log off;} } _____________ Rich in Toronto @ VP > On Jun 28, 2021, at 10:21 AM, Sergey A. Osokin <o...@freebsd.org.ru> wrote: > > 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. _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx