This forum is no longer active. Please post your questions to our new community site

Forums LAMPStack

Accessing trac:88 through apache:80

Subscribe to Accessing trac:88 through apache:80 7 post(s), 2 voice(s)

 
Avatar sandy_k43@ya... 8 post(s)

I am using LAMPstack on Centos 5.4. and also installed trac-0.11.6-0(bitnami), which is running on port 88 and apache is running on port 80.
Now i want to access trac through apache from port 80, means
http://trac.example.com/trac should point to http://trac.example.com:88/trac
How can i achieve this ?

Thanks,
Sandeep Kumar

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Try the following. Enable the mod_rewrite module and write the following in the httpd.conf (the main Apache server, wich is running at port 80):


ProxyPass /trac balancer://traccluster
ProxyPassReverse /trac balancer://traccluster

<Proxy balancer://traccluster>
  BalancerMember http:// 127.0.0.1:88/trac
</Proxy>

I hope it helps.

 
Avatar sandy_k43@ya... 8 post(s)

Getting this error when i restart apache after making changes in httpd.conf file

“Syntax error on line 526 of /opt/lampstack-1.2-0/apache2/conf/httpd.conf:
BalancerMember can not have a balancer name when defined in a location”

 
Avatar sandy_k43@ya... 8 post(s)

Hi beltran thanks a lot. It workes, I just remove the space between http:// & IP/trac

You charm, greate

Thanks again
Sandeep

 
Avatar sandy_k43@ya... 8 post(s)

Hi bltran,
Now i want to create a vhost so that i can access it by using trac.example.com/trac
Can you please give me an example

Thanks
Sandeep

 
Avatar sandy_k43@ya... 8 post(s)

Hi beltran,
I have made entry for vhost and it is working as trac.example.com/trac, But can i use this without putting /trac; I mean http://trac.example.com

Thanks
Sandeep

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Yes you can use a virtualhost using trac.example.com url. You can find more info about this configuration at http://httpd.apache.org/docs/2.0/vhosts/example…
I hope it helps.

Forums LAMPStack