PDA

View Full Version : Problem with httpd.conf and ipv6 since 1.392 update da



frits
09-01-2011, 01:03 AM
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

SeLLeRoNe
09-01-2011, 01:34 AM
Please post the file:


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

and


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


Regards

freakie
09-01-2011, 05:04 AM
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

SeLLeRoNe
09-01-2011, 05:15 AM
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

DirectAdmin Support
09-01-2011, 02:11 PM
Thanks for the report. Found and fixed the error. Will upload new binaries once compile is done. Will release 1.39.3.

John

DirectAdmin Support
09-01-2011, 02:54 PM
Hello,

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

frits
09-02-2011, 12:44 AM
Cheers! Works like a charm.