On Monday, March 24, 2014, Jun Fan <j.fan@qmul.ac.uk> wrote:

RewriteEngine on

RewriteRule ^(.*) http://localhost:8080$1 [P]

      I tried to add them to 1) the main conf file: apache2.conf, 2) newly generated httpd.conf by myself under /etc/apache2 folder and 3) newly generated .htaccess file under /etc/apache2/conf.d folder, and none of them gave me the luck.



This thread might help you: 
http://dev.list.galaxyproject.org/Running-Galaxy-behind-apache2-td4624545.html
 
--Carlos