• Support
  • Bug on https / apache with dash character on domain name

Hello !

aaPanel works very well and simplifies the administration of several websites.
I love this product ;-)

I found a small bug with an installation on apache and with a domain that contains a hyphen(dash) in the domain name
when I add a new site, the site installs very well and everything works well.
On the other hand when I activate the SSL, there is an error in the apache conf and it goes wrong.
Looking at the conf, it's as if he adds a carriage return at the dash on the line.
Example domain : test-test.com

<VirtualHost *:443>
ServerAdmin webmaster@example.com
DocumentRoot "/home/wwwww/wwwwroot/test-test.com/"
ServerName SSL.test-test.com
ServerAlias www.test-test.com test-test.com
#errorDocument 404 /404.html
ErrorLog "/wwww/wwwlogs/test-test.com-error_log"
CustomLog "/wwww/wwwlogs/test
-test.com-access_log" combined

this only appears with domain that have a dash character.

aaPanel 6.8.7
Apache 2.4.46

Have a nice day!
F

after testing the new site and deploying SSL, everything is normal and no error is reported in the configuration. If there is an error message, you can post the error message to see

The error is only when a domain contain a dash character like test-test.com or tototo-test.com
if the domain not contain dash character, everything works...

i can't reproduce the error because domain site is alive and i not have another domain with dash character
but the error was in config like this
<VirtualHost *:443>
ServerAdmin webmaster@example.com
DocumentRoot "/home/wwwww/wwwwroot/test-test.com/"
ServerName SSL.test-test.com
ServerAlias www.test-test.com test-test.com
#errorDocument 404 /404.html
ErrorLog "/wwww/wwwlogs/test-test.com-error_log"
CustomLog "/wwww/wwwlogs/test
-test.com-access_log" combined

    fabricem Hello, brother, when Apahce built the site, he was related to the configuration here, ServerAlias www.test-test.com test-test.com

    Yes i know.
    The probleme is that the script cut the line on CustomLog at the last dash character and apache read the conf -test.com-access_log" combined

    Sorry my example is not good because, i think it's not one dash character but 2 dash character like domaine-du-lez.fr

    If you can't test with 2 dash character, you can close this ticket, i will try to reproduce when i have another domain with 2 dash

    Many thanks
    F