Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.
François Parmentier edited this page Mar 16, 2016 · 2 revisions

I can't install pm2 version 0.10 / fsevents prevents the install

fsevents is an optional dependency, only useful for MacOS.

If you are using npm version 3.x, it may prevents the rest of the dependencies to install. Use a version 2.x of npm, and it should work.

How to make an instance the default page of the domain?

If you have an instance, say home-prod-1, that you want to be redirected to when you access to your domain, say domain.co (which is also the value of the environment variable domainProxy), you can configure an Apache reverse proxy like that:

<VirtualHost data.istex.fr:80>
        ProxyPreserveHost On

        ServerName domain.co
        ServerAlias *.domain.co

        <Location />
           # redirect to home-prod-1 ezmaster instance 
           # if domain.co is requested
           SetEnvIf Host ^domain\.co$ DOMAIN_CO_PROD_HOME
           RequestHeader set Host "home-prod-1.domain.co" env=DOMAIN_CO_PROD_HOME

           ProxyPass        http://<ezmaster-server-ip>:35267/
           ProxyPassReverse http://<ezmaster-server-ip>:35267/
        </Location>
</VirtualHost>