Re: [galaxy-dev] Galaxy Proxy by an External Apache Server
Hi Carlos, You are right! I put the same config to site-available and now it works! Will do more testing/configuring base on that. Do you know why the location of the settings cause this issue? Thanks Derrick On Fri, Jan 6, 2012 at 12:42 PM, Carlos Borroto <carlos.borroto@gmail.com>wrote:
I'm not sure this will solve the problem, but I would put this configuration in /etc/apache2/sites-available/default if your server is not serving any other virtualhost. If you are serving publicnet.org from a virtualhost configured in /etc/apache2/sites-available/, put this configuration in the corresponding file.
Remember to do reload apache configuration after doing the changes: $ sudo invoke-rc.d apache2 reload
I also want to clarify if I need to create the symlink to galaxy inside /var/www/?
No, you don't need this link.
Hope it helps, Carlos
On Thu, Jan 5, 2012 at 8:51 PM, Derrick LIN <klin938@gmail.com> wrote:
Hi Carlos,
You are right! I put the same config to site-available and now it works!
Will do more testing/configuring base on that.
Do you know why the location of the settings cause this issue?
I would have to read a little more, but directives in apache are context specific, I guess the ones you are using are <VirtualHost> specific. You could read more here: http://httpd.apache.org/docs/current/mod/mod_rewrite.html Glad it worked.
From the doc:
By default, mod_rewrite<http://httpd.apache.org/docs/current/mod/mod_rewrite.html> configuration settings from the main server context are not inherited by virtual hosts. To make the main server settings apply to virtual hosts, you must place the following directives in each <VirtualHost><http://httpd.apache.org/docs/current/mod/core.html#virtualhost> section: I guess the default site enable VirtualHost (port 80) for my entire site, thus rewrite rules won't be inherited, thus need to specify under VirtualHost Section. Thanks again, cheers, Derrick On Fri, Jan 6, 2012 at 1:08 PM, Carlos Borroto <carlos.borroto@gmail.com>wrote:
On Thu, Jan 5, 2012 at 8:51 PM, Derrick LIN <klin938@gmail.com> wrote:
Hi Carlos,
You are right! I put the same config to site-available and now it works!
Will do more testing/configuring base on that.
Do you know why the location of the settings cause this issue?
I would have to read a little more, but directives in apache are context specific, I guess the ones you are using are <VirtualHost> specific.
You could read more here: http://httpd.apache.org/docs/current/mod/mod_rewrite.html
Glad it worked.
participants (2)
-
Carlos Borroto
-
Derrick LIN