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
Answered

Cannot log into ajenti after digitalocean droplet resize

JL Griffin 9 years ago updated by Eugene Pankov (Project coordinator) 9 years ago 7
Was running on my DigitalOcean VPS with only 1gb of ram. did a droplet resize to get to 2gb. nothing else changed other than processor and ram size. same domains same IP same everything, however now going to my webnetvn.com:8000 brings me to connection attempt to

webnetvn.com was rejected. The website may be down, or your network may not be properly configured.
checked ajenti's configs and everything looks right still. somewhere i might be able to check figure out why this is happening?

Thanks in advance.
Answer
Panel opens up just fine at https://webnetvn.com:8000/
0

Advanced Email Forwarding Options

Noah Dolph 10 years ago updated by Rodger Cravens 9 years ago 3
It would be great if the options for email forwarding were expanded a bit. A bit cpanel style would be great, specify either forward to an address or pipe, and then give options for the path of the pipe and the bin file to call. IE

Pipe to -> /some/path/to/script.php
Application -> php54
Options -> -q

Or something of that nature?
0
Under review

Dynamic email addresses

Thibaut 10 years ago updated by Eugene Pankov (Project coordinator) 10 years ago 7
Hello,

Does Ajenti V Mail support dynamic email addresses?
It's a useful feature we use a lot.
0
Answered

How to configure Ajenti V hosted website with extension less URL

dK Magno 10 years ago updated by Eugene Pankov (Project coordinator) 10 years ago 4
I am trying ways to configure my website to be extension less. That is when .php or .html files are visited, it'll be redirected to an URL without the extension.

Anyone has successfully configured their Ajenti V with this?
Answer
It's possible by adding a Custom Configuration code to your content entries. Example: http://stackoverflow.com/questions/19975218/remove-php-from-url-with-rewrite-rule
0
Answered

Can not login to ajenti anymore!

Ron DaDon 11 years ago updated by Eugene Pankov (Project coordinator) 11 years ago 1

Hello there!

Thank you for your project! Now with the Beta it looks much better but it is really slow on my dockstar. Much slower then the last non-Beta version

Nevertheless I have a major problem.


I can not login to ajenti over the WebUI. I generated a SHA base64 Hash from "admin" but When I put in the password it does not work. I can not login to ajenti.


Here the /etc/ajenti/ajenti.conf

[code]

[users]

admin = {SHA}0DPiKuNIrrVmD8IUCuw1hQxNqZc=

[ajenti]

bind_port = 8000

cert_file =

cert_key =

bind_host =

ssl = 0

update_server = meta.ajenti.org

auth_enabled = 1

plugins = /var/lib/ajenti/plugins

htdocs = /var/lib/ajenti

firstrun = no

[dashboard]

powerwidget = right,0

loadwidget = left,0

networkwidget = right,1

memwidget = left,1

[daemons]

new =

[meters]

config = {"swapmeter": {"None": {"limit_dang": 100484544.0, "limit_susp": 40484544.0}}, "rammeter": {"None": {"limit_dang": 105299008.0, "limit_susp": 80299008.0}}, "servicemete$

[/code]


I restarted the service and also rebooted the Dockstar!

Have you any suggestions?! Thank you very much in advance!


0
Answered

Domain + subdomains in the same "website"?

Thibaut 10 years ago updated by Eugene Pankov (Project coordinator) 10 years ago 12
Hey,

Does Ajenti support subdomains without the need to create separate websites, but use subfolders instead? I guess in this case each subdomain site would not create a separate php5-fpm instance. Is the reasoning correct? Does it make sense?

I quickly tried to make it work with "custom configuration" directives but, coming from Apache, I still have some issue with Nginx. :) So I prefer to ask, maybe Ajenti doesn't support this at all.

Thanks!
Answer
Totally possible:

if ($host = 'sub.domain.com') { rewrite / /subpath; }
0
Answered

Installing and Running Ajenti on ReadyNAS RN102

Arpan Jain 9 years ago updated by Eugene Pankov (Project coordinator) 9 years ago 5
Hi,

I want to install Ajenti on Netgear ReadyNAS 102. I was able to successfully install it but I am not able to access it using URL https://192.168.0.104:8000/. I also don't see it running on port 8000 when i run netstat -tlnp command. I have tried restarting the service and its does it fine. 

Here is the install output


root@arpannas2:~# wget -O- https://raw.github.com/Eugeny/ajenti/master/scripts/i nstall-debian.sh | sh
--2014-10-20 13:41:35-- https://raw.github.com/Eugeny/ajenti/master/scripts/ins tall-debian.sh
Resolving raw.github.com (raw.github.com)... 199.27.79.133
Connecting to raw.github.com (raw.github.com)|199.27.79.133|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://raw.githubusercontent.com/Eugeny/ajenti/master/scripts/install -debian.sh [following]
--2014-10-20 13:41:38-- https://raw.githubusercontent.com/Eugeny/ajenti/master/ scripts/install-debian.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 199.27.79.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|199.27.79.13 3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 472 [text/plain]
Saving to: ‘STDOUT’


100%[======================================>] 472 --.-K/s in 0s


2014-10-20 13:41:39 (1.89 MB/s) - written to stdout [472/472]


:: Installing repo key
--2014-10-20 13:41:40-- http://repo.ajenti.org/debian/key
Resolving repo.ajenti.org (repo.ajenti.org)... 198.232.124.224
Connecting to repo.ajenti.org (repo.ajenti.org)|198.232.124.224|:80... connected .
HTTP request sent, awaiting response... 200 OK
Length: 1716 (1.7K) [application/octet-stream]
Saving to: ‘STDOUT’


100%[======================================>] 1,716 --.-K/s in 0s


2014-10-20 13:41:40 (36.0 MB/s) - written to stdout [1716/1716]


OK
:: Adding repo entry
:: Updating lists
Hit http://mirrors.kernel.org wheezy Release.gpg
Hit http://apt.readynas.com 6.1.9 Release.gpg
Hit http://mirrors.kernel.org wheezy Release
Get:1 http://apt.readynas.com 6.1.9 Release [19.4 kB]
Get:2 http://security.debian.org wheezy/updates Release.gpg [836 B]
Hit http://repo.ajenti.org main Release.gpg
Get:3 http://repo.ajenti.org main Release.gpg [490 B]
Hit http://repo.ajenti.org main Release
Get:4 http://repo.ajenti.org main Release [11.1 kB]
Get:5 http://security.debian.org wheezy/updates Release [102 kB]
Hit http://mirrors.kernel.org wheezy/main armel Packages
Hit http://repo.ajenti.org main/main armel Packages
Get:6 http://apt.readynas.com 6.1.9/updates armel Packages [16.0 kB]
Get:7 http://repo.ajenti.org main/main armel Packages [6,485 B]
Hit http://apt.readynas.com 6.1.9/apps armel Packages
Hit http://apt.readynas.com 6.1.9/main armel Packages
Get:8 http://repo.ajenti.org main/debian armel Packages [1,881 B]
Get:9 http://security.debian.org wheezy/updates/main armel Packages [221 kB]
Fetched 379 kB in 3s (116 kB/s)
Duplicate sources.list entry http://repo.ajenti.org/ng/debian/ main/main armel P ackages (/var/lib/apt/lists/repo.ajenti.org_ng_debian_dists_main_main_binary-arm el_Packages)
You may want to run apt-get update to correct these problems
Reading package lists... Done
W: Duplicate sources.list entry http://repo.ajenti.org/ng/debian/ main/main arme l Packages (/var/lib/apt/lists/repo.ajenti.org_ng_debian_dists_main_main_binary- armel_Packages)
W: You may want to run apt-get update to correct these problems
:: Installing package
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
ajenti
0 upgraded, 1 newly installed, 0 to remove and 47 not upgraded.
Need to get 0 B/1,058 kB of archives.
After this operation, 4,438 kB of additional disk space will be used.
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package ajenti.
(Reading database ... 21830 files and directories currently installed.)
Unpacking ajenti (from .../ajenti_1.2.22.13_all.deb) ...
Setting up ajenti (1.2.22.13) ...
insserv: warning: script 'vpnclient' missing LSB tags and overrides
:: SSL is already configured
------------------------------------------------
Now start Ajenti with 'service ajenti restart'
Ajenti will listen on HTTPS port 8000 by default


Default username : root
Default password : admin
------------------------------------------------
Processing triggers for python-support ...
:: Done! Open https://<address>:8000 in browser
root@arpannas2:~# service ajenti status
ajenti.service - LSB: Ajenti
Loaded: loaded (/etc/init.d/ajenti)
Active: active (exited) since Mon, 20 Oct 2014 13:43:03 -0700; 30s ago
Process: 17038 ExecStop=/etc/init.d/ajenti stop (code=exited, status=0/ SUCCESS)
Process: 14127 ExecStart=/etc/init.d/ajenti start (code=exited, status= 0/SUCCESS)
CGroup: name=systemd:/system/ajenti.service


Oct 20 13:42:59 arpannas2 ajenti[14127]: Starting Ajenti:
Oct 20 13:43:03 arpannas2 ajenti[14127]: 2014-10-20 13:43:03,199 INFO aj...n
Oct 20 13:43:03 arpannas2 ajenti[14127]: started.
root@arpannas2:~# service ajenti restart
[ ok ] Restarting ajenti (via systemctl): ajenti.service.



Can you please help me with this - what am i doing wrong and how do u fix it?

Thanks,
Arpan
0

Nameserver Not Sticking

godzilla8nj 10 years ago updated 10 years ago 2
I am running Ajenti on Ubuntu 12.04. If I set the DNS nameserver using the Ajenti Nameserver plugin it works but disappears when I reboot. Setting the DNS namerver manually in /etc/network/interfaces works, but does not populate the Nameserver plugin.
0
Answered

301 redirect howto?

Frederik H-Henriksen 9 years ago updated 9 years ago 9
How to do a permanemt 301 redirect using nginx? I want eg. www.domain1.com & domain1.com to point to domain3.com

domain3.com already has a website created in ajenti using nginx.

I need this as I have a lot domains that need to point to domain3.com or subfolders/pages on that domain

Thank you.

Answer
You can do this by adding another website for www.domain1.com, and adding this custom website configuration:

rewrite ^ http://domain3.com$request_uri permanent;

(from http://stackoverflow.com/questions/7947030/nginx-no-www-to-www-and-www-to-no-www)
0
Declined

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

Valentin Kazakov 9 years ago updated 9 years ago 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;
}
}




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