0xjessel / calchat

CalChat is a web app that hosts chatrooms for every class and building on campus with the goal of connecting the cal campus community. By logging in with Facebook, students can talk to fellow students in the same building or class, make friends, find study partners, and stay in the loop.
calchat.net
3 stars 0 forks source link

Invisibily redirect calchat.net to calchat.net:3000 #22

Closed pingpongboss closed 12 years ago

pingpongboss commented 12 years ago

@meltedxice I took a look at my .htaccess files. Seems like there might be 2 ways to do this. Have you tried them?

1

This is the best bet

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(calttc.)?berkeley.edu$

RewriteRule ^(/)?$ blog [L]

2

This probably will not work "invisibly"

Redirect 301 / http://calttc.tumblr.com/

0xjessel commented 12 years ago

the only thing I tried so far is this:

RewriteRule ^ http://127.0.0.1:3000%{REQUEST_URI} [P,QSA,L]

which redirects ALL requests from calchat.net to 127.0.0.1:3000 but I was getting some problems with the node instance not resolving urls. i didn't put much time into this but the examples you provided might just do the trick.

0xjessel commented 12 years ago

this might help too (posting for reference)

http://brianmckenna.org/blog/nodejs_via_cgi

0xjessel commented 12 years ago

tried doing some work on this but still no luck. maybe @pingpongboss you can take a stab at it. if not then fuck it, we'll VPS this shit

(not to mention running node and redis-server is against the TOS for dreamhost shared servers so we'll probably get fucked once we receive real traffic to our node server)

0xjessel commented 12 years ago

vps set up.

user: meltedboss hostname: ps94231.dreamhostps.com pw: same as before

0xjessel commented 12 years ago

calchat.net set up

wow socket.io scared me