Problem with httpd.conf and ipv6 since 1.392 update da

frits

New member
Joined
Sep 1, 2011
Messages
2
Hi,

Since the update last night we are experiencing the following problem related to ipv6 and how the apache config is written.

When I check /usr/local/directadmin/data/users/xxxx/httpd.conf I see that the ipv6 ports are mixed up in the virtualhost stanza:
<VirtualHost xx.xx.xx.xx:80 [xxxx:xxxx:xxxx:x:x:x:x:x]:443 >
For the non ssl virtualhost and:
<VirtualHost xx.xx.xx.xx:443 [xxxx:xxxx:xxxx:x:x:x:x:x]:80 >
For the ssl virtualhost

Now when you have a site which is ssl enabled you will drop in a redirect loop, changing the port numbers will fix the issue but will probably be wewritten by the next directadmin config update.

Please advice.

Kind regards,
Kevin Phylipsen
 
Please post the file:

Code:
/usr/local/directadmin/data/templates/virtual_host2.conf

and

Code:
/usr/local/directadmin/data/templates/custom/virtual_host2.conf


Regards
 
i have the same problem, here's my contents:

|?DOCROOT=`HOME`/domains/`DOMAIN`/public_html|
|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/var/tmp:/usr/local/lib/php/|
<VirtualHost |IP|:|PORT_80| |MULTI_IP|>
|CUSTOM|
|?CGI=ScriptAlias /cgi-bin/ `DOCROOT`/cgi-bin/|
ServerName www.|DOMAIN|
ServerAlias www.|DOMAIN| |DOMAIN| |SERVER_ALIASES|
ServerAdmin |ADMIN|
DocumentRoot |DOCROOT|
|CGI|

|USECANONICALNAME|

SuexecUserGroup |USER| |GROUP|
CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log

<Directory |DOCROOT|>
Options +Includes -Indexes
|*if CLI="1"|
php_admin_flag engine |PHP|
<IfModule !mod_php6.c>
php_admin_flag safe_mode |SAFE_MODE|
</IfModule>
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f |USER|@|DOMAIN|'
|*endif|
|*if OPEN_BASEDIR="ON"|
php_admin_value open_basedir |OPEN_BASEDIR_PATH|
|*endif|
|*if SUPHP="1"|
suPHP_Engine |PHP|
suPHP_UserGroup |USER| |GROUP|
|*endif|
</Directory>
|HANDLERS|
|MIMETYPES|

</VirtualHost>


i hav eno custom templates
 
mmh looks like mine, you need to contact da support, maybe is a bug with new release (prolly).

Ill send a mail to John too with link to this thread.

Regards
 
Thanks for the report. Found and fixed the error. Will upload new binaries once compile is done. Will release 1.39.3.

John
 
Hello,

1.39.3 is now available to resolve the issue.
After updating, type:
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
John
 
Back
Top