• Support
  • aaPanel's nginx sites-* locations

Please, could you tell me what's the organization of the usual sites-available, sites-enabled directories when nginx has been installed and is managed through aaPanel? TIA

EDIT: And also, unless mistake, I don't see any conf.d directory in the nginx tree... What the advised way to include an additional conf file the aaPanel way?

So, from what I see, main nginx conf is in /www/server/nginx/conf which includes vhost confs in /www/server/panel/vhost/nginx. Thus, I could add any additional global conf to include in a /www/server/nginx/conf/conf.d directory I would create, and additional vhost specific conf in a /www/server/panel/vhost/nginx/conf.d.

But my question remains: does aaPanel provides a way I could have missed to manage additional conf files? I mean conf files which shouldn't be erased, even in case regular ones (main and vhost ones) are reset; so, I will just have to re-include my additional conf files.

    hilord
    Hello, aapanel nginx only loads the conf configuration file under /www/server/panel/vhost/nginx/ by default

    2 years later

    Hello,

    My current situation is: for every website, reverse proxy, docker I install, I must go into /etc/nginx/sites-available and play create a file with the configuration. I've tried to copy paste the one aapanel shows as Config file, but it gives errors. So I need to manage put a code that will work, then I need to create folder for acme-challenge, put that in the nginx configuration, and set permissions, then I need to change the ssl credentials folder as they are not at an usual path..

    When it's reverse proxy and docker it's about the same, but maybe a bit harder. Network connection must configured as docker is a dififerent "machine", so localhost will not work.

    I don't always manage to fix it. I have two installations I still couldn't figure out how to make it work (ssl for docker composer metabase and aapanel itself).

    Does clicking a button and installing a website, clicking another and installing ssl, or a reverse proxy is a reality with aapanel? What am I missing or doing wrong please?

    Thank you!

    Gabriel

    Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com