Configurar Domínio Virtual no Apache
Se estiver usando o servidor apache, segue uma demonstração da configuração do domínio virtual sobre a instalação do Badiu.Net.
<VirtualHost *:80>
ServerAdmin root@localhost
ServerName xxxxx.com.br
DocumentRoot /home/xxxx/web
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
<Directory /home/xx/web>
Require all granted
Options -Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</Directory>
ErrorLog ${APACHE_LOG_DIR}/xx-error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/xx.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =xxxx.com.br
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>