Google Drive, XAMPP, MacBook

  1. Rename “Google Drive” to one without space. Example: GoogleDrive to avoid issues
  2. Move app to that folder: /Users/xxx/GoogleDrive/htdocs/MyApp
  3. Edit XAMPP etc/httpd/extra/httpd-vhost.conf:
    <VirtualHost *:80>
    DocumentRoot “/Applications/XAMPP/xamppfiles/htdocs”
    ServerName localhost
    </VirtualHost>

    <VirtualHost *:80>
    DocumentRoot “/Users/xxx/GoogleDrive/htdocs/MyApp1/webroot”
    ServerName dev.app1
    </VirtualHost>

    <VirtualHost *:80>
    DocumentRoot “/Users/xxx/GoogleDrive/htdocs/MyApp2/webroot”
    ServerName dev.app2
    </VirtualHost>

  4.  Map custom domain to localhost in /etc/hosts:
    127.0.0.1 dev.app1
    127.0.0.1 dev.app2

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *