Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Tips and Tricks  >  Thread
   
 
Removing the :3000 from end of domain
 
joshkastang
Posted: 07 October 2008 12:20 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  4
Joined  2008-09-26

Please remember to back up all files before doing this, Just because it worked on my box doesn’t mean it will work on yours. This guide assumes you have experience with servers - Please do not attempt if you are not familiar with working on a command line.

Here is how to remove the :3000 (or equivalent port number) from the end of your domain. I didn’t see this posted anywhere else - I asked in one thread how someone did this, but instead of waiting - I just decided to do it on my own.

For my example, I am assuming you have a dedicated box (I don’t believe this will work for shared hosting unless your host is kind enough to edit the httpd.conf file for you.) This also assumes that you have access to a terminal and are using a linux based OS. It also assumes that you have knowledge working with servers. (You will be modifying core Apache files - Meaning if you mess up, you could kill your Apache install.) I am also going to assume that you have Tracks up and running already.

For this, you are going to need to have the following Apache modules installed: mod_proxy and mod_proxy_http.

-

~~~~~~~~~~~~~~~~~~~~~~~~

First thing is to find your httpd.conf file.

In Terminal:

[root@lab1 /]$ locate httpd.conf
/usr/local/apache/conf/httpd.conf
[root
@lab1 /]$ 

Open your httpd.conf file:

[root@lab1 /]$ sudo vi /usr/local/apache/conf/httpd.conf 


((Note, for my example - I am adding this to a subdomain - gtd.mydomain.com.))

Search for the VirtualHost file you want to modify, Here is the particular vhost I am editing:

<VirtualHost <server ip>:80>
    
ServerName gtd.mydomain.com
    ServerAlias www
.mydomain.com
    DocumentRoot 
/home/mydomain/public_html/gtd
    ServerAdmin webmaster
@mydomain.com
...
...
</
VirtualHost> 

Once you find the </VirtualHost> you are going to want to add the below in the code boxes right ABOVE the </VirtualHost> tag.

ServerSignature On
    ProxyRequests Off
    
<Proxy *>
         
Order deny,allow
         Allow from all
    
</Proxy>
    
ProxyPass / http://gtd.mydomain.com:3000/
    
ProxyPassReverse / http://gtd.mydomain.com:3000/
    
ProxyPreserveHost On 

Note: The ProxyPass and ProxyPassReverse lines will have to be modified to suit your needs.

The ultimate of this goal was to change:
http://gtd.mydomain.com:3000 to http://gtd.mydomain.com

I hope this helps someone. Sorry if It is a bit vague, I am trying to discourage people new to command line from attempting this.

Profile
 
Reinier Balt
Posted: 07 October 2008 07:03 AM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

nice writeup. I’ll add a link to this post from the wiki

Profile
 
   
 
 
‹‹ Tracks on Debian Linux with Apache      Looking for a few alpha testers to play with an email friendly version of tracks ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1000 seconds

Atom Feed
RSS 2.0