8Oct/080
Remove :3000 from Tracks GTD domain
Here is a relatively simple way to remove the :3000 from the end of your domain if you are using Tracks GTD.
Before following the instructions, please make sure you meet all the conditions below:
- -Working on a dedicated box (Have access to httpd.conf file and access to installing Apache modules)
- -Have mod_proxy and mod_proxy_http installed and working.
- -Have Tracks GTD up and running.
- -Have command line experience. (Please do not try this if you are not sure what you are doing, you could damage your Apache install.)
- -Backed up your configuration files.
SSH into your server, fire up your favorite editor and goto your httpd.conf file, in my case I am using Vi.
Find the domain/sub-domain Virtual Host you would like to remove the port number. I recommend using a subdomain.
<VirtualHost <server ip>:80>
ServerName gtd.mydomain.com
ServerAlias www.mydomain.com
DocumentRoot /home/mydomain/public_html/gtd
ServerAdmin webmaster@mydomain.com
</VirtualHost>
Right above the </VirtualHost>line, add in the following:
######
ServerSignature On
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://gtd.kast.me:3000/
ProxyPassReverse / http://gtd.kast.me:3000/
ProxyPreserveHost On
######
You will have to edit the Proxy lines as needed, basically both lines should read the same and be your ‘ServerName’ and the port number you have Tracks running on.
I hope this is simple enough to understand. I will answer questions via comments.
