Update: Sorry, my bad. For android 8+ we should have clartextTraffic=true in androidManifest.xml for http to work. This was done/present in my app but after enabling https and domain setup, I deleted that since that wasn't needed anymore. But when I started testing again with http, it was not connecting as this entry was missing. I completely forgot about that part.
Anyways, I tried with my old apache server again to see if that was working after realising no errors in nginxerror.log. That was not working as well. Then I realised it is something on the app side that changed.I compared with history to check what changes I made.
In hindsight, I should have known earlier as http was working/connecting fine through browser. Funny thing is if I had tried directly over load balancer it would have worked properly since app will be using https and this setting is not required. Anyways, wasted two days but lesson learned.:). Thank you @JonnieJS for helping/replying.
Original qn: I have a laravel/php application which was working fine in apache but I thought it might be better to move to nginx to support larger concurrent users.
When trying through http, nginx access log is completely blank and error log shows a single line notice that signal process started. When enabling debug, I get the epoll add event lines as well. Laravel log is blank as well.
Funny thing is when I try through browser (even with http), I get the laravel default page (I cannot check application itself as it is mobile only). App is using okhttp for connection, so could be something to do with that. curl -v
shows a similar response and html page as well.
This is my configuration file (domain/folder changed. Restarted server and tested multiple times after changes). The default nginx configuration file is unlinked.
Any idea what might be the issue or how to resolve this?