Hi all, Following the instruction on https://wiki.galaxyproject.org/Admin/Config/ApacheProxy to use Apache as proxy for Galaxy, I got stuck to put directives into the configuration file. The steps I took include: 1. install apache2: sudo apt-get install apache2 2. install modules mod_proxy, mod_http_proxy and mod_rewrite to support proxying a. check if mod are already enabled using: apache2ctl -M b. install: sudo a2enmod rewrite, sudo a2enmod proxy, sudo a2enmod proxy_http 3. give galaxy permission to the apache user a. find out the user who runs apache: ps -ef | grep apache and find out it is www-data b. find out groups galaxy belong: groups galaxy => galaxy c. add user www-data to group galaxy: sudo usermod -a -G galaxy www-data I believe that I have completed the job required above the "Basic configuration" section. I tried the first example: 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. I used "sudo service apache2 restart" after every time I tried. There is a warning " Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName". When I type the address "127.0.0.1" or "127.0.1.1", both of them only gave me the default apache home page, not the Galaxy page. Of course the Galaxy is running on the same server. Could anyone give me some clue to continue? Best regards! Jun
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.ht... --Carlos
Hi Carlos, It worked perfectly last time. But now on the new Ubuntu 14.04, no file called default exists under the folder sites-available, instead there are two files: 000-default.conf and default-ssl.conf. From the content of the files, 000-default.conf is more likely to be the alternative. I inserted directives as before and restart the apache service. The web browser told me that “Permission denied” even the galaxy-dist folder and its subfolder have at least 744 permission (everyone should be able to read). How can I solve this “Permission denied” issue? Best regards! Jun From: Carlos Borroto [mailto:carlos.borroto@gmail.com] Sent: Tuesday, March 25, 2014 3:45 PM To: Jun Fan Cc: galaxy-dev@lists.bx.psu.edu Subject: Re: [galaxy-dev] apache setting On Monday, March 24, 2014, Jun Fan <j.fan@qmul.ac.uk<mailto: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.ht... --Carlos
It could be something else, but the directory's permissions need to be '755'. The 'x' in a directory context means being able to change into the directory. On Mon, May 12, 2014 at 7:01 AM, Jun Fan <j.fan@qmul.ac.uk> wrote:
Hi Carlos,
It worked perfectly last time. But now on the new Ubuntu 14.04, no file called default exists under the folder sites-available, instead there are two files: 000-default.conf and default-ssl.conf. From the content of the files, 000-default.conf is more likely to be the alternative. I inserted directives as before and restart the apache service. The web browser told me that “Permission denied” even the galaxy-dist folder and its subfolder have at least 744 permission (everyone should be able to read). How can I solve this “Permission denied” issue?
Best regards!
Jun
From: Carlos Borroto [mailto:carlos.borroto@gmail.com] Sent: Tuesday, March 25, 2014 3:45 PM To: Jun Fan Cc: galaxy-dev@lists.bx.psu.edu Subject: Re: [galaxy-dev] apache setting
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.ht...
--Carlos
participants (2)
-
Carlos Borroto
-
Jun Fan