[SOLVED] How to set up a multisite configuration on localhost?


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?

Best regards

Hi Peter,

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 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!

1 Like

Thanks works like a charm.

In case someone needs this:

$ cat /etc/hosts localhost acme.neos emca.neos

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:

cat /etc/apache2/sites-available/001-neos.conf 

<VirtualHost *:80>
  DocumentRoot "/var/www/html/NEOS_DIRECTORY/Web"
  # enable the following line for production context
  #SetEnv FLOW_CONTEXT Production
  ServerName acme.oevre
  ServerAlias ecma.oevre

<Directory /var/www/html/NEOS_DIRECTORY/Web>
  AllowOverride All

$ sudo a2enmod rewrite
$ sudo a2enmod actions
$ apachectl configtest
$ sudo /etc/init.d/apache2 restart

Best regards

Can you mark this topic as solved?

Thanks :slight_smile: