hi friends! i just created aaPanel website via admin panel Website-Add site
aatest.app - /www/wwwroot/aatest.app (root dir) but when paste aatest.app to browser address bar - i can not open site and see error DNS_PROBE_FINISHED_NXDOMAIN
When i edited my /etc/hosts and add 127.0.0.1 aatest.app - i see error ERR_CONNECTION_REFUSED
192.168.1.10:8888/dfdsfds - my admin panel address
apache, mysql, php - runned.

when i go to 192.168.1.10 - i see (css styled page)
Site not found (green background)
Your request did not find this site in the web server!
Probable cause:
Did not bind this domain name or IP to this site!
Configuration file not in effect!

etc....

in Website - Site modification[aatest.app] - Configuration file is see

`<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot "/www/wwwroot/aatest.app"
ServerName aatest.app
ServerAlias aatest.app
#errorDocument 404 /404.html
ErrorLog "/www/wwwlogs/aatest.app-error_log"
CustomLog "/www/wwwlogs/aatest.app-access_log" combined


#DENY FILES
 <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
   Order allow,deny
   Deny from all
</Files>

#PHP
<FilesMatch \.php$>
        SetHandler "proxy:unix:/tmp/php-cgi-73.sock|fcgi://localhost"
</FilesMatch>

#PATH
<Directory "/www/wwwroot/aatest.app">
    SetOutputFilter DEFLATE
    Options FollowSymLinks
    AllowOverride All
    Require all granted
    DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>

</VirtualHost>`

what i need to do for open aaPanel sites? and process my web-deweloping..

    b007221087
    I found that your domain name aatest.app is not resolved, you must first resolve the domain name after the dns service provider can access it normally.
    If you just test, you can add a hosts content on your computer.

    file path: C:\Windows\System32\drivers\etc\hosts

      aaPanel_Jose
      Yes friend, thank you for your reply and help. I added aatest.app to my /etc/hosts I installed aaPanel to linux mint 19 - all works well. But i have other problem - i can not configure SSL for aatest.app and any other aapanel websites.. My software works via https connection only( And its very important configure SSL connections for aaPanel sites. aaPanel - great software and free! amazing! thanks.

      let me say what i did for creating SSL certificates and configure ssl for aatest.app

      1 - created certificates for aatest.app with sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /www/server/apache/certificates/aatest.app/server.key -out /www/server/apache/certificates/aatest.app/server.crt
      2- copied to
      cp /www/server/apache/certificates/aatest.app/server.crt /usr/share/ca-certificates/extra/server.crt
      and to "/www/server/panel/vhost/cert/aatest.app/server.crt"
      and cp /www/server/apache/certificates/aatest.app/server.key /www/server/panel/vhost/cert/aatest.app/server.key

      3- add to /www/server/panel/vhost/apache/aatest.app.conf
      `<VirtualHost *:80>
      ServerAdmin email@gmail.com
      DocumentRoot "/www/wwwroot/aatest.app"
      ServerName cc048d4b.aatest.app
      ServerAlias aatest.app
      #errorDocument 404 /404.html
      ErrorLog "/www/wwwlogs/aatest.app-error_log"
      CustomLog "/www/wwwlogs/aatest.app-access_log" combined


      #DENY FILES
       <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
         Order allow,deny
         Deny from all
      </Files>
      
      #PHP
      <FilesMatch \.php$>
              SetHandler "proxy:unix:/tmp/php-cgi-73.sock|fcgi://localhost"
      </FilesMatch>
      
      #PATH
      <Directory "/www/wwwroot/aatest.app">
          SetOutputFilter DEFLATE
          Options FollowSymLinks
          AllowOverride All
          Require all granted
          DirectoryIndex index.php index.html index.htm default.php default.html default.htm
      </Directory>

      </VirtualHost>
      <VirtualHost *:443>

      General setup for the virtual host

      ServerAdmin email@gmail.com
      DocumentRoot "/www/wwwroot/aatest.app"
      ServerName cc048d4b.aatest.app
      ServerAlias aatest.app
      SSLEngine on
      SSLCertificateFile "/www/server/panel/vhost/cert/aatest.app/server.crt"
      SSLCertificateKeyFile "/www/server/panel/vhost/cert/aatest.appl/server.key"
      </VirtualHost>`

      and i still have error - can not connect to https://aapanel.app/

      This is the complete ssl configuration file I set up with aapanel, you can refer to it.

      <VirtualHost *:80>
          ServerAdmin webmaster@example.com
          DocumentRoot "/www/wwwroot/ad.youbadbad.cn"
          ServerName 1ade8e6d.ad.youbadbad.cn
          ServerAlias ad.youbadbad.cn
          #errorDocument 404 /404.html
          ErrorLog "/www/wwwlogs/ad.youbadbad.cn-error_log"
          CustomLog "/www/wwwlogs/ad.youbadbad.cn-access_log" combined
          
          #DENY FILES
           <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
             Order allow,deny
             Deny from all
          </Files>
          
          #PHP
          <FilesMatch \.php$>
                  SetHandler "proxy:unix:/tmp/php-cgi-71.sock|fcgi://localhost"
          </FilesMatch>
          
          #PATH
          <Directory "/www/wwwroot/ad.youbadbad.cn">
              SetOutputFilter DEFLATE
              Options FollowSymLinks
              AllowOverride All
              Require all granted
              DirectoryIndex index.php index.html index.htm default.php default.html default.htm
          </Directory>
      </VirtualHost>
      <VirtualHost *:443>
          ServerAdmin webmasterexample.com
          DocumentRoot "/www/wwwroot/ad.youbadbad.cn/"
          ServerName SSL.ad.youbadbad.cn
          ServerAlias ad.youbadbad.cn 
          #errorDocument 404 /404.html
          ErrorLog "/www/wwwlogs/ad.youbadbad.cn-error_log"
          CustomLog "/www/wwwlogs/ad.youbadbad.cn-access_log" combined
          
          #SSL
          SSLEngine On
          SSLCertificateFile /www/server/panel/vhost/cert/ad.youbadbad.cn/fullchain.pem
          SSLCertificateKeyFile /www/server/panel/vhost/cert/ad.youbadbad.cn/privkey.pem
          SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
          SSLProtocol All -SSLv2 -SSLv3
          SSLHonorCipherOrder On
          
          #PHP
          <FilesMatch \.php$>
                  SetHandler "proxy:unix:/tmp/php-cgi-71.sock|fcgi://localhost"
          </FilesMatch>
          
      
          #DENY FILES
           <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
             Order allow,deny
             Deny from all
          </Files>
      
          #PATH
          <Directory "/www/wwwroot/ad.youbadbad.cn/">
              SetOutputFilter DEFLATE
              Options FollowSymLinks
              AllowOverride All
              Require all granted
              DirectoryIndex index.php index.html index.htm default.php default.html default.htm
          </Directory>
      </VirtualHost>

        aaPanel_Jose
        trying to configure ssl for samdev.local now i have this error.

        An error occurred while connecting to samdev.local. SSL received an entry whose length exceeds the maximum allowed. Error Code: SSL_ERROR_RX_RECORD_TOO_LONG
        my /www/server/panel/vhost/apache/samdev.local.conf
        but now i see that we have response from server.. this is good.

        `<VirtualHost *:80>
        ServerAdmin mail@gmail.com
        DocumentRoot "/www/wwwroot/samdev.local/wwwroot"
        ServerName cc048d4b.samdev.local
        ServerAlias samdev.local
        #errorDocument 404 /404.html
        ErrorLog "/www/wwwlogs/samdev.local-error_log"
        CustomLog "/www/wwwlogs/samdev.local-access_log" combined


        #DENY FILES
         <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
           Order allow,deny
           Deny from all
        </Files>
        
        #PHP
        <FilesMatch \.php$>
                SetHandler "proxy:unix:/tmp/php-cgi-73.sock|fcgi://localhost"
        </FilesMatch>
        
        #PATH
        <Directory "/www/wwwroot/samdev.local">
            SetOutputFilter DEFLATE
            Options FollowSymLinks
            AllowOverride All
            Require all granted
            DirectoryIndex index.php index.html index.htm default.php default.html default.htm
        </Directory>

        </VirtualHost>
        <VirtualHost *:443>

        General setup for the virtual host

        ServerAdmin mail@gmail.com
        DocumentRoot "/www/wwwroot/samdev.local/wwwroot"
        ServerName cc048d4b.samdev.local
        ServerAlias samdev.local
        ErrorLog "/www/wwwlogs/samdev.local-error_log"
        CustomLog "/www/wwwlogs/samdev.local-access_log" combined


        SSLEngine off		
        SSLCertificateFile "/www/server/panel/vhost/cert/samdev.local/fullchain.pem"	
        SSLCertificateKeyFile "/www/server/panel/vhost/cert/samdev.local/privkey.pem"	
        SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
        SSLProtocol All -SSLv2 -SSLv3
        SSLHonorCipherOrder On
        
        #PATH
        <Directory "/www/wwwroot/samdev.local/">
            SetOutputFilter DEFLATE
            Options FollowSymLinks
            AllowOverride All
            Require all granted
            DirectoryIndex index.php index.html index.htm default.php default.html default.htm
        </Directory>

        </VirtualHost>`

        i a, try to get more details about connection with samdev.local
        in terminal i run
        openssl s_client -msg -connect samdev.local:443

        give response

        yura@007-pc:/certs$ openssl s_client -msg -connect samdev.local:443
        CONNECTED(00000003)

        ??? [length 0005]
        16 03 01 01 35
        TLS 1.3, Handshake [length 0135], ClientHello
        01 00 01 31 03 03 7a ae fe b9 e8 df e1 f0 e3 aa
        69 1d bc eb ae ca 4c cb 53 e7 e8 69 00 38 e1 1d
        bf 7c 88 42 32 a0 20 5d a2 cc 42 2f 57 f5 dd 87
        97 0d 5e d2 10 82 ba 05 eb 46 11 d3 b9 b8 12 70
        33 19 84 37 83 7e 96 00 3e 13 02 13 03 13 01 c0
        2c c0 30 00 9f cc a9 cc a8 cc aa c0 2b c0 2f 00
        9e c0 24 c0 28 00 6b c0 23 c0 27 00 67 c0 0a c0
        14 00 39 c0 09 c0 13 00 33 00 9d 00 9c 00 3d 00
        3c 00 35 00 2f 00 ff 01 00 00 aa 00 00 00 11 00
        0f 00 00 0c 73 61 6d 64 65 76 2e 6c 6f 63 61 6c
        00 0b 00 04 03 00 01 02 00 0a 00 0c 00 0a 00 1d
        00 17 00 1e 00 19 00 18 00 23 00 00 00 16 00 00
        00 17 00 00 00 0d 00 30 00 2e 04 03 05 03 06 03
        08 07 08 08 08 09 08 0a 08 0b 08 04 08 05 08 06
        04 01 05 01 06 01 03 03 02 03 03 01 02 01 03 02
        02 02 04 02 05 02 06 02 00 2b 00 09 08 03 04 03
        03 03 02 03 01 00 2d 00 02 01 01 00 33 00 26 00
        24 00 1d 00 20 6d 4e 6e 56 12 35 12 7f fe c9 42
        91 e9 3a 01 dd 39 49 7c a9 a6 44 be 11 09 62 54
        ef 1b 62 a3 1b
        <<< ??? [length 0005]
        48 54 54 50 2f

        140023665853568:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:ssl/record/ssl3_record.c:331:

        no peer certificate available

        No client certificate CA names sent

        SSL handshake has read 5 bytes and written 314 bytes

        Verification: OK

        New, (NONE), Cipher is (NONE)
        Secure Renegotiation IS NOT supported
        Compression: NONE
        Expansion: NONE
        No ALPN negotiated
        Early data was not sent

        Verify return code: 0 (ok)

        ------------
        as you can see i have conection with samdev.local but no peer certificate available.. something wrong with my sertificate. How i can build right certificate for samdev.local?

        try to copy your crt key file conntent to here and save, i have not reproduced your question.

        Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com