Welcome to the Ajenti Idea Exchange. It's your chance to collaborate with our team and other users to influence the future of Ajenti! Ideas appreciated.

0
Declined

Ajenti nginx with ssl Несоответствие в документации http://support.ajenti.org/topic/349870-ajenti-behind-nginx/

Valentin Kazakov 9 jaar geleden bijgewerkt 9 jaar geleden 2
Последняя версия ajenti активно рекомендует использовать защищенное соединение по https. Все конфиги в базе знаний написаны для обычного соединения и оно в итоге не работает, что призывается пользователя (в том числе и меня) сильно раскуриться поиском и мануалами. Это не плохо, но если пользователю нужно исключительно тестирование, то это не гуманно.

Предлагаю заменить или добавить конфиг для nginx в статье на примерно такой вариант.

Предварительно требуется создать или перенести сертификаты (file.crt и file.key), если они есть.

server {
listen 443;

server_name your-domain-name-or-and-ip-adress;

client_max_body_size 20m;
access_log /var/log/nginx/ajenti-access.log;
error_log /var/log/nginx/ajenti-error.log;

ssl on;
ssl_certificate /path/to/server/ssl/file.crt;
ssl_certificate_key /path/to/server/ssl/file.key;

keepalive_timeout 60;
ssl_ciphers HIGH:!ADH:!MD5;
ssl_protocols SSLv3 TLSv1;
ssl_prefer_server_ciphers on;
proxy_buffers 16 64k;
proxy_buffer_size 128k;
location /ajenti {
rewrite (/ajenti)$ / break;
rewrite /ajenti/(.*) /$1 break;
proxy_pass https://your-domain-name-or-and-ip-adress:8000;
proxy_redirect / /ajenti/;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_read_timeout 5m;
}
}




Antwoord
1. В примере показан только необходимый минимум (location и bodysize) - скорее всего конфиг будут вставлять в конфиг уже существующего сайта (типичный юзкейс - https://abc.com/admin/ajenti)
2. Нет никакого смысла в SSL между nginx и ajenti.
0
Voltooid

Как сменить язык панели на русский?

Сергій Кондратюк 11 jaar geleden bijgewerkt door Eugene Pankov (Project coordinator) 11 jaar geleden 3

Как сменить язык панели на русский?

Antwoord

Смените локаль системы на русскую и перезагрузите ее

0
Beantwoord

Установка на рабочий сервер

Сергій Кондратюк 11 jaar geleden bijgewerkt door Eugene Pankov (Project coordinator) 11 jaar geleden 2

Есть впс работает уже, стоит весь набор (апач и все дела)

Можно установить панельку? Ничего она не попортит?

Antwoord

Ничего не попортит, все конфиги сохраняются как есть.

0
Beantwoord

Ajenti behind Apache 2.2 reverse proxy

AirOnSkin 10 jaar geleden bijgewerkt door Eugene Pankov (Project coordinator) 10 jaar geleden 3
The documentation is not complete on how to configure Ajenti to run behind an Apache 2.2 reverse proxy.

The 'Ajenti behind Apache' KB entry only works for HTTPD 2.4 since HTTPD 2.2 has natively no mod_proxy_wstunnel.

The following - which I have put together from various support entries - works 90%:

SSLProxyEngine On
ProxyRequests Off
ProxyPass /ajenti https://localhost:8000
ProxyPassMatch ^/(ajenti.*)$ https://localhost:8000/$1
ProxyPassReverse /ajenti:static/ https://localhost:8000/ajenti:static/
ProxyPassReverse /ajenti:auth https://localhost:8000/ajenti:auth
ProxyPassReverse /ajenti https://localhost:8000

The problem with this configuration is, that after logging in and out, Ajenti issues a redirect to /

This was already mentioned here:
http://support.ajenti.org/topic/227663-ajenti-apac...
https://bugs.launchpad.net/ajenti/+bug/1249425

Thanks for looking into this.
Antwoord
Thank you for the input! I've simplified your config a bit, fixed the ProxyPassReverse directive, and now everything works, including the login redirects: http://support.ajenti.org/topic/472359-ajenti-behind-apache/
0

SSL Certificate generation error at installation (Debian)

Norbert 9 jaar geleden 0

At install i get an error at generating the SSL certificate:

Traceback (most recent call last):

File "/usr/local/bin/ajenti-ssl-gen", line 20, in <module>

if config['ssl']['certificate']:

KeyError: 'certificate'


Im working on a Debian, cat /proc/version gives:

Linux version 3.16.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19)


After deactivating SSL, i can log in to the page, but there is only the outer frame. The Safari debugger tells me:

[Error] Viewport argument key "target-densitydpi" not recognized and ignored. (192.168.178.35, line 8)
[Error] Viewport argument key "target-densitydpi" not recognized and ignored. (192.168.178.35, line 9)
[Error] Socket error:
(anonyme Funktion)resources.js:10435
emitresources.js:7656:4920
publishresources.js:7656:13064
onErrorresources.js:7656:16893
onreadystatechangeresources.js:7656:13891
[Error] Failed to load resource: Die Netzwerkverbindung wurde unterbrochen. (1, line 0)


Any idea to fix these problems?


regards


Norbert

0
Not a bug

fedora 19

Владимир Смагин 11 jaar geleden bijgewerkt door Eugene Pankov (Project coordinator) 11 jaar geleden 0

пытаюсь поставить на fedora 19. получаю такую фигню с зависимостями:

---> Package python-tempita.noarch 0:0.5.1-5.fc19 will be installed
---> Package reconfigure.noarch 0:0.1.26-1 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: reconfigure-0.1.26-1.noarch
--> Finished Dependency Resolution
Error: Package: reconfigure-0.1.26-1.noarch (ajenti)
  Requires: python(abi) = 2.6
  Installed: python-2.7.5-4.fc19.i686 (@updates)
  python(abi) = 2.7
  python(abi) = 2.7
  Available: python-2.7.5-1.fc19.i686 (fedora)
  python(abi) = 2.7
  python(abi) = 2.7
  Available: python3-3.3.2-2.fc19.i686 (fedora)
  python(abi) = 3.3
  Available: python3-3.3.2-6.fc19.i686 (updates)
  python(abi) = 3.3
Error: Package: python-gevent-socketio-0.3.5_rc2-1.noarch (ajenti)
  Requires: python(abi) = 2.6
  Installed: python-2.7.5-4.fc19.i686 (@updates)
  python(abi) = 2.7
  python(abi) = 2.7
  Available: python-2.7.5-1.fc19.i686 (fedora)
  python(abi) = 2.7
  python(abi) = 2.7
  Available: python3-3.3.2-2.fc19.i686 (fedora)
  python(abi) = 3.3
  Available: python3-3.3.2-6.fc19.i686 (updates)
  python(abi) = 3.3
Error: Package: ajenti-1.0.5.3-1.noarch (ajenti)
  Requires: python(abi) = 2.6
  Installed: python-2.7.5-4.fc19.i686 (@updates)
  python(abi) = 2.7
  python(abi) = 2.7
  Available: python-2.7.5-1.fc19.i686 (fedora)
  python(abi) = 2.7
  python(abi) = 2.7
  Available: python3-3.3.2-2.fc19.i686 (fedora)
  python(abi) = 3.3
  Available: python3-3.3.2-6.fc19.i686 (updates)
  python(abi) = 3.3
Error: Package: python-catcher-0.1.2-1.noarch (ajenti)
  Requires: python(abi) = 2.6
  Installed: python-2.7.5-4.fc19.i686 (@updates)
  python(abi) = 2.7
  python(abi) = 2.7
  Available: python-2.7.5-1.fc19.i686 (fedora)
  python(abi) = 2.7
  python(abi) = 2.7
  Available: python3-3.3.2-2.fc19.i686 (fedora)
  python(abi) = 3.3
  Available: python3-3.3.2-6.fc19.i686 (updates)
  python(abi) = 3.3
Error: Package: python-exconsole-0.1.2-1.noarch (ajenti)
  Requires: python(abi) = 2.6
  Installed: python-2.7.5-4.fc19.i686 (@updates)
  python(abi) = 2.7
  python(abi) = 2.7
  Available: python-2.7.5-1.fc19.i686 (fedora)
  python(abi) = 2.7
  python(abi) = 2.7
  Available: python3-3.3.2-2.fc19.i686 (fedora)
  python(abi) = 3.3
  Available: python3-3.3.2-6.fc19.i686 (updates)
  python(abi) = 3.3
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@localhost ~]#

Antwoord

Fedora не является поддерживаемой платформой, но можно поставить: pip install ajenti

0
Beantwoord

Default vhost file location?

Main Street James 11 jaar geleden bijgewerkt door Eugene Pankov (Project coordinator) 11 jaar geleden 3

Sorry if this is a duplicate post. I don't see my original. 


Does Ajenti use its own default vhost file? If so, in which directory is it located?

Antwoord

Do you mean the Apache plugin? Vhost template is hardcoded in the plugin, unfortunately.


0

Ajenti V mail settings regenerate form CLI/terminal

Edgars Strods 9 jaar geleden bijgewerkt door Mario 9 jaar geleden 2
Is there a command I can call from terminal / cli for ajenti to regenerate the mail settings form config file (/etc/ajenti/mail.json)? I would like to allow users to change their mail password. So I could make changes in this config file from another interface and then call ajenti to regenerate all settings from it, so they are active immediately. Is this possible?
0
Fixed

Iptables and multiport

InteractMarketing 11 jaar geleden bijgewerkt door Eugene Pankov (Project coordinator) 11 jaar geleden 0

when a new rule is created it always adding multiport to modules

Antwoord

Fixed in 1.x

0
Beantwoord

403 Forbidden

Napoolion 10 jaar geleden bijgewerkt door Eugene Pankov (Project coordinator) 10 jaar geleden 21
Hello!

Installed Ajenti to my server.
Got my wordpress website working.

Then I needed to add subdomain to main domain.Used DNS to subdomain to my server ip address where my main domain is.

Now neither of pages work. Place where I installed wordpress sites throws in 403 Forbidden error.

and subdomain throws page not found error. (needs some DNS waiting, but with pingdom you can see 403 Forbidden error aswell.

If I disable subdomain, wordpress one (main domain) starts working again.

So I am quite new in this, what I need to do?

Best wishes,
Silver