Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support Angie web server #191

Closed
adammakowskidev opened this issue Nov 14, 2023 · 13 comments
Closed

Add support Angie web server #191

adammakowskidev opened this issue Nov 14, 2023 · 13 comments
Labels
enhancement New feature or request

Comments

@adammakowskidev
Copy link

adammakowskidev commented Nov 14, 2023

Hi.
Can you add support for Angie Web server as well? This is a very nice fork of nginx. It is also being developed rapidly.

https://angie.software/en/
Angie is an efficient, powerful, and scalable web server that was forked from nginx:

  • Conceived by nginx ex-devs to extend the functionality far beyond the original.
  • Acts as a drop-in replacement for nginx without major configuration changes.

I tried using it and already tested it, but there is a problem with finding the executable file in Path location in nginx-ui

"exec: "nginx": executable file not found in $PATH"

How to solve this problem?

@adammakowskidev adammakowskidev added the enhancement New feature or request label Nov 14, 2023
@0xJacky
Copy link
Owner

0xJacky commented Nov 21, 2023

Please use v2-beta of Nginx UI, and you can set the configuration directory, reload command and restart command maually. Once you set these parameters, Nginx UI will not try to exec the default nginx command.

You can modify the app.ini file to set them.

[nginx]
AccessLogPath = /var/log/nginx/access.log
ErrorLogPath  = /var/log/nginx/error.log
ConfigDir    =
PIDPath       =
ReloadCmd     =
RestartCmd    =

@adammakowskidev
Copy link
Author

[nginx]
AccessLogPath = /var/log/angie/access.log
ErrorLogPath = /var/log/angie/error.log
ConfigDir = /etc/angie
PIDPath = /run/angie.pid
ReloadCmd = sudo service angie reload
RestartCmd = sudo service angie restart

I set it this way but the problem still persists. I am also using the latest version of nginx UI.

@0xJacky
Copy link
Owner

0xJacky commented Nov 21, 2023

Have you restarted the nginx ui service?

@adammakowskidev
Copy link
Author

Of course. Even the server. Could you test this on your own server?

@0xJacky
Copy link
Owner

0xJacky commented Nov 21, 2023

Did you encounter this issue while attempting to save a configuration?

@adammakowskidev
Copy link
Author

Yes, always when saving, although the config is created. Issuing an SSL certificate also does not work.

@0xJacky
Copy link
Owner

0xJacky commented Nov 21, 2023

https://github.com/0xJacky/nginx-ui/blob/dev/server/internal/nginx/nginx.go

Oops, I forgot to provide a custom command for config test, it always exec nginx -t, I will fix it.

@0xJacky
Copy link
Owner

0xJacky commented Nov 21, 2023

Yes, always when saving, although the config is created. Issuing an SSL certificate also does not work.

Nginx UI will try to save a config automatically when you issuing a ssl certificate, and before save, it will also test the config. However in your case, test config is not works, so you can't obtain the certification.

@adammakowskidev
Copy link
Author

Of course I understand all this. Is there any way to solve this problem now?

@0xJacky
Copy link
Owner

0xJacky commented Nov 21, 2023

I released a new v2.0.0-beta.4 verison, and this issue should be fixed.

Please set your command for testing configuration in app.ini.

[nginx]
TestConfigCmd = 

@adammakowskidev
Copy link
Author

So I need setup

[nginx]
TestConfigCmd = sudo angie -t

Yes?

@0xJacky
Copy link
Owner

0xJacky commented Nov 21, 2023

yes

@adammakowskidev
Copy link
Author

Thank you Jacky.
I will test it today and let you know if it works.

@0xJacky 0xJacky closed this as completed Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants