0

I am using apache 2.4 and mysql and Ubuntu 20.04 LTS. I was trying to follow this tutorial in xampp: how to create virtual host on XAMPP and working to me, however I need to create virtualhost in the devilbox. I followed the steps:
1° In terminal, I wrote
sudo nano /etc/hosts
and added
127.0.0.1 portalnoticias2022
3° I edited the file: /home/user/devilbox/cfg/apache-2.4/devilbox-custom.conf
4° I added the code:

vhost: |
  <VirtualHost *:80>
      ServerName   dashboard.versareurb.com.br

      CustomLog  "/var/log/apache/access.log" combined
      ErrorLog   "/var/log/apache/error.log"

      DocumentRoot "/home/user/devilbox/data/www/portalnoticias2022/"
      <Directory "/home/user/devilbox/data/www/portalnoticias2022/">
          DirectoryIndex index.php

          AllowOverride All
          Options All

          RewriteEngine on
          RewriteBase /

          Order allow,deny
          Allow from all
      </Directory>
      ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/home/user/devilbox/data/www/portalnoticias2022/$1
  </VirtualHost>

5° I restarted the devilbox

But I do not know why appear this error to me when I try to access the address: dashboard.versareurb.com.br
ERR_SOCKET_NOT_CONNECTED

Someone can help me?

0 Answers0