Nginx Info on various files and DA architecture

americanintel

Verified User
Joined
Mar 1, 2004
Messages
126
Location
Granbury, TX
We have an MVC router that needs to be put somewhere:


location / {
try_files $uri $uri/ /index.php$is_args$args;
}


Possibly in include /usr/local/directadmin/data/users/ouruser/nginx.conf;

But I'm also seeing plenty of files in /etc/nginx:

[root@app1 nginx]# ls
directadmin-ips.conf fastcgi.conf.default mime.types nginx_limits.conf uwsgi_params
directadmin-settings.conf fastcgi_params mime.types.default scgi_params uwsgi_params.default
directadmin-vhosts.conf fastcgi_params.default nginx.conf scgi_params.default webapps.conf
directadmin-vhosts.conf.back koi-utf nginx.conf.default ssl.crt webapps_settings.conf
fastcgi.conf koi-win nginx-includes.conf ssl.key win-utf


How about a breakdown of how DA has setup Nginx and what is performing certain functions? Especially the directadmin-files and what the various nginx.conf files are doing in /etc/nginx and /usr/local/directadmin/data/users/?

In the bottom of /etc/nginx/nginx.conf is:
include /etc/nginx/directadmin-settings.conf;
include /etc/nginx/nginx-includes.conf;
include /etc/nginx/directadmin-vhosts.conf;

follow that trail and the vhosts.conf file has:
include /usr/local/directadmin/data/users/user1/nginx.conf;
include /usr/local/directadmin/data/users/user2/nginx.conf;

So obviously we end up there anyway... yet the router doesn't seem to work. Nor does phpMyadmin fyi.... just 502 Bad Gateway errors.
 
Last edited:

americanintel

Verified User
Joined
Mar 1, 2004
Messages
126
Location
Granbury, TX
One thing I found...

[root@app1 domains]# service php-fpm54 restart
Gracefully shutting down php-fpm54: warning, no pid file found - php-fpm54 is not running ?
Starting php-fpm54: done

Kinda hard to make PHP go if it's not running huh?

Made sure it starts at boot this time.
 
Top