March 17, 2019, 4:48pm
I wanted to set up a multisite Neos installation on a local machine. I created two sites in the
Sites Management. I’m stuck with configuring how to make both sites available on
http://localhost, since I don’t know what to enter as host ( See slide 30 of this slideshare presentation.).
Is there a way to create a multisite configuration / installation on a local machine?
March 17, 2019, 6:29pm
you need to setup two hostnames in your /etc/hosts (Linux or OS X). On windows im not sure what the file is called right now.
Both should point to 127.0.0.1 and be the same as the ones configured in Neos.
That should then be enough. So you would use these hostnames instead of localhost.
Hope that helps!
March 18, 2019, 1:38pm
Thanks works like a charm.
In case someone needs this:
$ cat /etc/hosts
In the backend I added in
Administration / Sites Management to each Site/Package one of the domains above.
In case you want to use your apache for rendering neos:
# enable the following line for production context
#SetEnv FLOW_CONTEXT Production
$ sudo a2enmod rewrite
$ sudo a2enmod actions
$ apachectl configtest
$ sudo /etc/init.d/apache2 restart
March 19, 2019, 8:54am
Can you mark this topic as solved?