How to configure virtualhost for xampp on Ubuntu

Asked

Viewed 1,785 times

0

2 answers

2

Opa all right ?

First you need to uncomment into the /opt/lampp/etc/http.conf file, the following line:

#Virtual Host

Include etc/extra/httpd-vhosts.conf


After that edit the file: /opt/lampp/etc/extra/httpd-vhost.conf

<VirtualHost myaplication:80>
   DocumentRoot "/opt/lampp/htdocs/pasta-do-projeto"
   ServerName myaplication
   <Directory "/opt/lampp/htdocs/pasta-do-projeto">
       AllowOverride All
       Require all granted
   </Directory>
</VirtualHost>

Finally edit the file and add the same name of the virtualhost created: /etc/hosts inserir a descrição da imagem aqui


Restart apache and try to access http://myaplication

  • Vlw @Viktor Hugo, was exactly what I was looking for. Mto Thanks!

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.