Tips and tricks
Create a local dev Apache Mysql PHP Setup on Mac OS X - Add Virtual Hosts
How to create a local dev Apache Mysql PHP Setup on Mac OS X ‣ Digital Zoom Studio
also, remember to allow vhost_alias_module
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
You can add unlimited virtual hosts just like MAMP adds them. You can just access /private/etc/apache2/httpd.conf and add:
<VirtualHost *:80> ServerName devsite DocumentRoot "/Users/123/Dropbox/hosts/devsite" Protocols h2 h2c http/1.1 <IfModule xsendfile_module> XSendFilePath "/Users/123/Dropbox/hosts/devsite" </IfModule> ServerAlias devsite.* <Directory "/Users/123/Dropbox/hosts/devsite"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All <IfModule authz_host_module> Require all granted </IfModule> Allow from all </Directory> <IfModule wsgi_module> WSGIDaemonProcess devsite processes=2 threads=15 WSGIProcessGroup devsite WSGIScriptAlias /devsiteWsgiApp "/Users/123/Dropbox/hosts/devsite/wsgiapp.py" </IfModule> </VirtualHost>
Add SSL Virtual hosts
first, you need to go to httpd.conf and enable ssl_module