I had som problems getting more than one October installation to function in backend, got wrong security tokens a lot, especially when more than one October backend was open. So you need domain ore subdomain, for more than one October installation, what I understand.
Well, my goal is also that I can both develop on local host and test site on local network (for responsive testing, mobile phones).
Configuration functions good on local host, but when I go to local ip, one installation of October takes over. It even takes over root (i.e my Ip: 192.168.0.MYIP). (for security reason I hade change my ip number in this post to MYIP)
Here's my configuration.
IN: /etc/hosts
127.0.0.1 localhost localhost.local freepower.local
127.0.0.1 october.localhost october.local
- 127.0.0.1 october2.localhost october2.local
: 1 localhost localhost.local freepower.local
fe80::1%lo0 localhost
192.168.0.MYIP freepower.local freepower
192.168.0.MYIP october.local
192.168.0.MYIP october2.local
255.255.255.255 broadcasthost
IN Apache config: /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "/Users/klas/web/october"
ServerName october.localhost
ServerAlias october.local
</VirtualHost>
<VirtualHost *:80> DocumentRoot "/Users/klas/web/october2"
ServerName october2.localhost
ServerAlias october2.local
</VirtualHost>
<VirtualHost 192.168.0.106:80>
DocumentRoot "/Users/klas/web"
ServerName freepower.local
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Users/klas/web"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Users/klas/web"
ServerName localhost.local
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Users/klas/web"
ServerName freepower.local
</VirtualHost>
Last updated