Professional Documents
Culture Documents
1. Enable virtual hosts by editing httpd.conf, if it is not enabled already. Once you
enable it you can skip this step next time.
Include etc/extra/httpd-vhosts.conf
Usually, by default there are two virtual hosts in this file. You can edit one or create
new one by copy-pasting one of them. The required entries are DocumentRoot and
ServerName
ServerAdmin your_email@domain_name.com
DocumentRoot "*YourLocation*"
ServerName mysite.local
ServerAlias www.mysite.local
ErrorLog logs/mysite.local-error_log
CustomLog logs/mysite.local-access_log common
Options All
AllowOverride All
Require all granted
<VirtualHost *:80>
ServerAdmin your_email@domain_name.com
DocumentRoot /opt/lampp/htdocs/meusite
ServerName meusite.local
ServerAlias www.meusite.local
ErrorLog logs/meusite.local-error_log
</VirtualHost>
3. Next, you will need to tell Xampp server where to find the address you added above:
127.0.0.1 meusite.local
4. Restart xampp server by doing