i get this error when i deploay my meteor app on my own server
WebSocket connection to 'ws://my-domaine.com/sockjs/128/b6lndooo/websocket' failed: WebSocket is closed before the connection is established.
im using apache any ; one plz could help
<VirtualHost *:80>
ServerName my-domaine.com
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
# Tell Apache and Passenger where your app's code directory is
DocumentRoot /var/www/test/bundle/public
PassengerAppRoot /var/www/test/bundle
# Tell Passenger that your app is a bundled Meteor app
PassengerAppType node
PassengerStartupFile main.js
# Tell your app where MongoDB is
SetEnv MONGO_URL mongodb://localhost:27017/datab
# Tell your app what its root URL is
SetEnv ROOT_URL http://monboutique.tn
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* ws://monboutique.tn:80//%{REQUEST_URI} [P]
# Relax Apache security settings
<Directory /var/www/test/code/public>
Allow from all
Options -MultiViews
# Uncomment this if you're on Apache > 2.4:
# Require all granted
</Directory>
</VirtualHost>
via kahri wajdi
No comments:
Post a Comment