PDA

View Full Version : basic rewrite instructions


djsodom
01-13-2007, 08:34 AM
I've got my rails app running properly. I've got my domain pointing to my server. However, of course, I must type www.mydomain.com:8088 to access my app.

I'm a little confused whether I write a rewrite rule or whether I can do as a context.

Can someone provide a sample of how & where to set this up?

thanks,

Steve

mistwang
01-13-2007, 08:49 AM
Don't know what you want exactly. :)

djsodom
01-13-2007, 01:16 PM
Sorry.

What do I need to change to have when I type in www.mydomain.com it goes to my app at port 8088? Right now, if I type in www.mydomain.com, nothing is found "unable to establish a connection". However, if I type in www.mydomain.com:8088 then my app shows up.

I'm thinking I have to write a rewrite rule to direct mydomain.com to port 8088.

Steve

mistwang
01-13-2007, 02:12 PM
You can just change the port number of the listener from 8088 to 80.

djsodom
01-13-2007, 02:42 PM
Easy enough. For education sake, can you provide an example of what I'd need to do if I wanted to point the domain to port 81 or 8088 instead of 80?

Also let me ask a different question. If I want to redirect all visits to mydomain.com to www.mydomain.com, can you provide a sample rewrite?

Thanks

Steve

You can just change the port number of the listener from 8088 to 80.