Categories
Blog

Configurar VirtualHosts en XAMPP (OS X)

En Terminal: sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts Agrego: 127.0.0.1    proyecto.dev sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf Agrego: <VirtualHost *:80> ServerName arqfiles.dev DocumentRoot “/Users/[usuario]/[ruta-proyecto]” <Directory “/Users/[usuario]/[ruta-proyecto]”> Order allow,deny Allow from all RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </Directory> </VirtualHost> Reiniciar Apache.