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

Nginx config for Ajenti secure reverse proxy

KeviNaomi Shenk 11 years ago updated by Translator5 9 years ago 3

Here is the current Nginx host config I have for running Ajenti behind a reverse proxy:


upstream ajentiweb {

    server 127.0.0.1:8000 weight=1 fail_timeout=300s;

}

server {

listen 80;

server_name cp.domain.com;

location / {

        proxy_pass http://ajentiweb;

proxy_redirect off;

}

}


The new version of ajenti prefers an https connection.  How could I modify this to redirect users to https and tunnel that connection through to ajenti?

Answer

You are right, the new version enabled HTTPS by default, but it's not mandatory. You can disable SSL in Configuration section and use your old config.

Or, you can configure nginx as an SSL proxy (for example: http://www.cyberciti.biz/faq/howto-linux-unix-setup-nginx-ssl-proxy/) - generally, you need to generate a certificate and add it to the nginx config.


0
Answered

Notepad - config file editor.

itsgone6 12 years ago updated by Eugene Pankov (Project coordinator) 11 years ago 0

when i try and use the notepad to edit asterisk config files, the changes are not saved. what permissions do i need to add to the files to be able to edit them. i have u:rw, g:rw, o:rw set.

0
Fixed

Supervisor plugin uses broken link for service-start.png

David Lunn 11 years ago updated by Eugene Pankov (Project coordinator) 11 years ago 1

Correct file is service-run.png


Can be simply fixed with:

sudo cp /usr/share/pyshared/ajenti/plugins/core/files/ui/stock/service-run.png /usr/share/pyshared/ajenti/plugins/core/files/ui/stock/service-start.png

sudo cp /usr/lib/pymodules/python2.7/ajenti/plugins/core/files/ui/stock/service-run.png /usr/lib/pymodules/python2.7/ajenti/plugins/core/files/ui/stock/service-start.png


(Ubuntu 13.04 Server x64)

Answer

Please upgrade to Ajenti 1.x beta :)

0
Declined

How can i configure nginx with .htaccess?

Aminul Islam 10 years ago updated 10 years ago 2
Is there any way to make the support htaccess file to nginx server?


I used a webuzo panel by softacoulus. There I can handle.htaccess manually. Can you please tell me how I can use.htaccess with nginx?


Regards.
Answer
Hi Aminul,

.htaccess is an outdated technology (in fact used almost only with PHP), and isn't supported by NGINX. But you can convert your .htaccess rules into NGINX custom configuration here: http://winginx.com/en/htaccess
0
Completed

Redirect www to non-www

Thibaut 10 years ago updated 10 years ago 8
Hello,

I'm trying to do a www to non-www redirect for one of my websites but it looks like everything I try fails. This is what I'm using:
server {
	server_name	www.example.com;
	return 301	http://example.com$request_uri;
}

I then get the following error:
nginx: [emerg] "server" directive is not allowed here in /etc/nginx/conf.d/examplecom.conf:16
nginx: configuration file /etc/nginx/nginx.conf test failed

Am I doing something wrong?
Answer
You can't insert server{} sections into another server{}. Put your snippet into /etc/nginx.custom.d/yourconfig.conf and restart NGINX.
0
Fixed

I cant update ajenti

Pablo Matias Mana 11 years ago updated by Eugene Pankov (Project coordinator) 11 years ago 0

Here is a problem:


gzip:/var/lib/apt/lists/partial/repo.ajenti.org_ng_debian_dists_main_main_binary-armhf_Packages: Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

E: Couldn't rebuild package cache


SO Ubuntu on Bealge Bone Black 
Answer

Your APT lists are damaged. Please follow this instruction: http://stackoverflow.com/a/15508704/223122

0
Fixed

FreeBSD import catcher error

Igor Pnev 11 years ago updated by Eugene Pankov (Project coordinator) 11 years ago 0

./ajenti-bsd start

Traceback (most recent call last):

  File "/usr/local/bin/ajenti-panel", line 11, in <module>

    from ajenti.util import PidFile

  File "/usr/local/lib/python2.7/site-packages/ajenti/util.py", line 9, in <module>

    import catcher

ImportError: No module named catcher


Answer

Please run 'pip install python-catcher'. Dependency will be added in the next build.

0
Answered

DKMI - shorten key for 255 character limit - namecheap

Jens Walser 10 years ago updated 10 years ago 2
I have a limit in TXT records with namecheap.com domain provider. The DKMI Key generated with ajenti is too long for the txt record textbox. they limited the txt record to 255 characters.
Is it possible to generate shorter key, or split the Key to input on namecheap?
Answer
The key size used is the minimum one recommended by Google for GMail sender authentication. If you need a smaller one, please use one of online manuals available.
0
Answered

Archlinux support.

Влад Вишняков 11 years ago updated by Eugene Pankov (Project coordinator) 11 years ago 0

Why there is no support for Archlinux? Why there is no systemd integration (service file)?

Answer

Мне жаль, но доля Arch среди пользователей ajenti 0.6.x была слишком мала, а усилий для его поддержки требовалось слишком много.

0

Won't send email

felipe rce 9 years ago updated 9 years ago 1

I can't send email to outside, but can receive... I can set the email on the thunderbird and RainLoop, but only can receive email!

When I send email to outside (e.g gmail) I get this in /var/log/exim4/mainlog

2015-10-23 23:03:04 1Zpp6m-0005Y1-3q <= suporte@tupinikimtecnologia.com.br H=(mail.tupinikimtecnologia.com.br) [104.236.13.241] P=esmtpa A=login:suporte@tup$

2015-10-23 23:03:04 1Zpp6m-0005Y1-3q gmail-smtp-in.l.google.com [2607:f8b0:400d:c06::1a] Network is unreachable

2015-10-23 23:03:05 1Zpp2h-0005XF-7P alt1.gmail-smtp-in.l.google.com [64.233.190.26] Connection timed out

2015-10-23 23:03:05 1Zpp2h-0005XF-7P alt2.gmail-smtp-in.l.google.com [2a00:1450:400b:c02::1a] Network is unreachable

2015-10-23 23:03:05 1Zpp2h-0005XF-7P alt3.gmail-smtp-in.l.google.com [2a00:1450:400c:c09::1b] Network is unreachable

And when I check on http://mxtoolbox.com/ I get only this erros: (dmarc Missing or Invalid Record)

2015-10-23 23:14:00 H=(PWS3.mxtoolbox.com) [64.20.227.134] F=<supertool@mxtoolbox.com> rejected RCPT <test@example.com>: relay not permitted

2015-10-23 23:15:30 1Zpp2h-0005XF-7P alt1.gmail-smtp-in.l.google.com [64.233.190.27] Connection timed out2015-10-23 23:15:30 1Zpp2h-0005XF-7P alt2.gmail-smtp-in.l.google.com [2a00:1450:400b:c02::1b] Network is unreachable

2015-10-23 23:15:30 1Zpp2h-0005XF-7P alt3.gmail-smtp-in.l.google.com [2a00:1450:400c:c09::1a] Network is unreachable