Editing Nginx proxy on HTTPD config page in DA

ricardo777

Verified User
Joined
Mar 29, 2012
Messages
89
Location
Netherlands
Hello,

I have a issue that I cannot edit 1 NGINX proxy config file for 1 one domain, when I click Nginx proxy:

https://m2.domain.nl:2222/CMD_CUSTOM_HTTPD?domain=domain.nl&proxy=yes

I get: ERR_EMPTY_RESPONSE

I cannot find anything in directadmin debug mode or error log of directadmin.

The Nginx config file is in the data/user/domain folder and is valid. Permissions are set on diradmin:username 640

Have restarted NGINX APACHE and Directadmin without any luck, also a forum search and Google search without success.
 
When you're getting absolutely nothing, it's usually something wrong, either a segfault or total internal catastrophe :)
If it were a permission error or something on disk, you'd usually get a result page with an error message.
As zEitEr said, paste us the debug mode.. maybe try level 2500 if you're not seeing much.

You could also run it with "s" mode through gdb, along with debug mode, so we know we're only looking at one process:
http://help.directadmin.com/item.php?id=185

so in gdb, run:
run s b2500

paste us the output, but change session cookie info, IPs/domains, etc... there should be any password info on that particular page.

If still nothing, bump it up to level 3000, and we'd be looking for this:
Code:
    debug(3000, "Send::sendData(%s): DONE.  Sent: %ld bytes", req, bytessent);
    debug(3000, "Send::sendData(%s): data actually delivered: %ld bytes", req, bytesdelivered);
which is the debug code for telling us how many bytes were sent, after everything is done.

So if you do see "Send::sendData" in the output, and the number of bytes are reasonable (the bytes for both lines should match up: they're the size of the bytes sent, versus the number of bytes the socket write call is telling us that were actually sent), then the bytes got lost in space somewhere.
If you don't see that at all, we'd need to know where it stopped, and why.. so the last output from the debug would help us determine that.

John
 
Hello,

Thank you for the reply, and information.

Here is the first output:

Code:
DirectAdmin 1.50.0
Accepting Connections on port 2222
Sockets::handshake - begin
Sockets::handshake - end
/CMD_CUSTOM_HTTPD
GET string: domain=domain.nl&proxy=yes
 0: Accept-Encoding: gzip, deflate, sdch
 1: Accept-Language: nl,en-US;q=0.8,en;q=0.6,es;q=0.4,fr;q=0.2
 2: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
 3: Connection: keep-alive
 4: Cookie: session=xxx
 5: Host: m2.domain.nl:2222
 6: Referer: https://m2.domain.nl:2222/CMD_CUSTOM_HTTPD
 7: Upgrade-Insecure-Requests: 1
 8: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
 9: X-CookiesOK: I explicitly accept all cookies
Checking referer https://m2.domain.nl:2222/CMD_CUSTOM_HTTPD to m2.domain.nl:2222
Referer check passed: m2.domain.nl=m2.domain.nl 2222/CMD_CUSTOM=2222
Command::doCommand(/CMD_CUSTOM_HTTPD)
execute('/usr/sbin/httpd -v', maxsize=128, fd=1, env=0)
Detaching after fork from child process 18019.

Program received signal SIGSEGV, Segmentation fault.
0x000000000056f96e in Tokenizer::runit(char const*, ConfigFile&, int) ()

Then alot here is a pastebin:

With bt full

http://pastebin.com/ng1XivhY


And a run s b3000

Code:
DirectAdmin 1.50.0
Accepting Connections on port 2222
Sockets::handshake - begin
Sockets::handshake - end
InternalText::init(authentication)
/CMD_CUSTOM_HTTPD
GET string: domain=domain.nl&proxy=yes
 0: Accept-Encoding: gzip, deflate, sdch
 1: Accept-Language: nl,en-US;q=0.8,en;q=0.6,es;q=0.4,fr;q=0.2
 2: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
 3: Cache-Control: max-age=0
 4: Connection: keep-alive
 5: Cookie: session=xxxxx
 6: Host: m2.domain.nl:2222
 7: Upgrade-Insecure-Requests: 1
 8: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
 9: X-CookiesOK: I explicitly accept all cookies
Authentication::authenticated: client_ip=80.56.10.199 client_command=CMD_CUSTOM_HTTPD
InternalText::init(user)
InternalText::init(security_questions)
Changing ./data/skins/enhanced/lang/en/internal/authentication.txt to ./data/skins/enhanced/lang/en/internal/authentication.txt for authentication(0)
Changing ./data/skins/enhanced/lang/en/internal/security_questions.txt to ./data/skins/enhanced/lang/en/internal/security_questions.txt for security_questions(2)
Changing ./data/skins/enhanced/lang/en/internal/user.txt to ./data/skins/enhanced/lang/en/internal/user.txt for user(1)
InternalText::init(command)
InternalText::init(system)
Command::doCommand(/CMD_CUSTOM_HTTPD)
InternalText::init(domain)
just after hc.init("domain"); for domain.nl.
Currently in Command::doCommand(/CMD_CUSTOM_HTTPD)
InternalText::init(user)
InternalText::init(security_questions)
InternalText::init(serverinfo)
execute('/usr/sbin/httpd -v', maxsize=128, fd=1, env=0)
Detaching after fork from child process 19324.
ServerInfo::getVersions: parsing httpd version from 'Server version: Apache/2.4.18 (Unix)
Server built:   Feb 22 2016 16:58:12
'
ConfigFile::pathExists:/usr/local/directadmin/data/admin/global_httpd_tokens.conf: pathExists('/usr/local/directadmin/data/admin/global_httpd_tokens.conf')<br>
A component of the path file_name does not exist, or the path is an empty string.<br>

ConfigFile::pathExists:/usr/local/directadmin/data/users/domainmail/domains/domain.nl.httpd_tokens: pathExists('/usr/local/directadmin/data/users/domainmail/domains/domain.nl.httpd_tokens')<br>
A component of the path file_name does not exist, or the path is an empty string.<br>

ConfigFile::pathExists:/usr/local/directadmin/data/users/domainmail/user.httpd_tokens: pathExists('/usr/local/directadmin/data/users/domainmail/user.httpd_tokens')<br>
A component of the path file_name does not exist, or the path is an empty string.<br>

InternalText::init(redirect)
InternalText::init(table)

Program received signal SIGSEGV, Segmentation fault.
0x000000000056f96e in Tokenizer::runit(char const*, ConfigFile&, int) ()
 
Back
Top