Processo de simulação de domínios multplos (atualizado 2022)
- Em C:\xampp\apache\conf\httpd.conf
User USUARIODOPC
Group Administradores
- em C:\xampp\apache\conf\extra\httpd-vhosts.conf adicionar
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:\xampp\htdocs\javascript-remoto\publisher"
ServerName publisher.localhost
ServerAlias www.publisher.localhost
ErrorLog "logs/publisher.localhost-error.log"
CustomLog "logs/publisher.localhost-access.log" combined
<Directory "C:\xampp\htdocs\javascript-remoto\publisher">
AllowOverride All
Order allow,deny
Allow from all
Require all granted
e
<VirtualHost *:80> ServerAdmin [email protected]
DocumentRoot "C:\xampp\htdocs\javascript-remoto\widget"
ServerName widget.localhost
ServerAlias www.widget.localhost
ErrorLog "logs/widget.localhost-error.log"
CustomLog "logs/widget.localhost-access.log" combined
<Directory "C:\xampp\htdocs\javascript-remoto\widget">
AllowOverride All Order allow,deny Allow from all Require all granted
- No arquivo C:\Windows\System32\drivers\etc\hosts adicionar
127.0.0.1 publisher.localhost
127.0.0.1 widget.localhost