How to set up an apache proxy for Meteor/SockJS and WebSocket?

后端 未结 5 1952
猫巷女王i
猫巷女王i 2020-12-05 12:31

I have an apache proxy for a meteor app and apache and meteor are on two separate machines. I need it that way as apache has to serve a lot of real websites and it wouldn\'t

5条回答
  •  甜味超标
    2020-12-05 13:10

    I wish I were able to provide you a direct reply with apache instructions but since you have mentioned nginx and that the fact is, it is hard to configure, I'd like to weigh in with an alternative that actually uses nginx but shields you from all the complexities.

    The tutorial at https://github.com/phusion/passenger/wiki/Phusion-Passenger:-Meteor-tutorial walks through the steps to set up Phusion Passenger with or without nginx (it internally uses nginx anyway) for multi-instance production Meteor deployments that can scale up to utilize all cores in your server.

    It is as easy as:

    $ cd meteor-app-directory
    $ mkdir public tmp
    $ passenger start
    

提交回复
热议问题