./build: line 10392: ${NW_HOSTNAME}: ambiguous redirect

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
15,567
Location
www.poralix.com
Hello,

another issue detected:

Code:
[root@server custombuild]# ./build rewrite_confs
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Using 87.xxx.xxx.87 for your server IP
Writing data to /etc/httpd/conf/extra/httpd-suphp.conf
Done.
Restarting apache.
Stopping httpd:                                            [  OK  ]
Starting httpd:
./build: line 10392: ${NW_HOSTNAME}: ambiguous redirect
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Using 87.xxx.xxx.87 for your server IP
Using 87.xxx.xxx.87 for your server IP
Writing data to /etc/httpd/conf/extra/httpd-suphp.conf
Done.
Restarting nginx.
nginx: [emerg] duplicate location "/phpmyadmin" in /etc/nginx/webapps.hostname.conf:13
nginx: configuration file /etc/nginx/nginx.conf test failed
[root@server custombuild]#
[root@server custombuild]# ./build version
2.0.0-RC7 (rev: 1069)



cat /etc/nginx/webapps.hostname.conf

Code:
        location /phpmyadmin {
                rewrite ^/* /phpMyAdmin last;
        }
        location /pma {
                rewrite ^/* /phpMyAdmin last;
        }
        if ($request_method !~ ^(GET|HEAD|POST)$ ) {
                return 444;
        }
        location ~ /(\.ht|\.user\.ini) {
                deny all;
        }
        location /phpmyadmin {
                rewrite ^/* /phpMyAdmin last;
        }
        location /pma {
                rewrite ^/* /phpMyAdmin last;
        }
        if ($request_method !~ ^(GET|HEAD|POST)$ ) {
                return 444;
        }
        location ~ /(\.ht|\.user\.ini) {
                deny all;
        }
        location /phpmyadmin {
                rewrite ^/* /phpMyAdmin last;
        }
        location /pma {
                rewrite ^/* /phpMyAdmin last;
        }
        if ($request_method !~ ^(GET|HEAD|POST)$ ) {
                return 444;
        }
        location ~ /(\.ht|\.user\.ini) {
                deny all;
        }
        location /phpmyadmin {
                rewrite ^/* /phpMyAdmin last;
        }
        location /pma {
                rewrite ^/* /phpMyAdmin last;
        }
        if ($request_method !~ ^(GET|HEAD|POST)$ ) {
                return 444;
        }
        location ~ /(\.ht|\.user\.ini) {
                deny all;
        }


Please fix it.
 
This issue should be already fixed in rev. 1071. Thank you for the report :) To fix it instantly:
Code:
echo > /etc/nginx/webapps.hostname.conf
./build rewrite_confs
 
Hi. also Faced this issue.
When will it be automatically resolved? i have latest version of Direct Admin and custombuild.


Regards
 
Latest version of CustomBuild is placed on files1 & files2 downloadservers, and it shouldn't take long for all the mirrors to update.
 
Back
Top