Hi Carlos, let's separate the problems.

When Apache takes a few seconds to load Gitorious, it is just because loading the Rails and Gitorious environment for the first time will take a few seconds. It doesn't mean that your virtual hosts problem has a timing problem in any way.

I've taken this snippets from previous mail:

gitorious.yml

 # Host the ./script/gitorious script should use:
  gitorious_client_host: gitorious.darkstar.ilri.org

  # Host which is serving the gitorious app, eg "gitorious.org"
  gitorious_host: darkstar.ilri.org


vhosts.conf

<VirtualHost *:80>
    ...
    DocumentRoot /srv/httpd/git.darkstar.ilri.org/gitorious/public
    ServerName git.darkstar.ilri.org

Well, in vhosts.conf you should replace the 'git' subdomain with 'gitorious' or anything else. Then you should change gitorious.yml to replace the above lines to these:

gitorious.yml

 # Host the ./script/gitorious script should use:
  gitorious_client_host: localhost

  # Host which is serving the gitorious app, eg "gitorious.org"
  gitorious_host: gitorious.darkstar.ilri.org


What is probably happening is that due to your misconfigured gitorious.yml Gitorious is redirecting to gitorious_host (darkstar.ilri.org) after initialization.

Try the above changes and tell us the result.

Em 01-07-2011 03:40, Carlos Quiros escreveu:
Hi,

I changed the virtual server to serve a static html page. For this I
changed DocumentRoot from /srv/httpd/git.darkstar.ilri.org/gitorious/
public to  /srv/httpd/git.darkstar.ilri.org where there is an
index.hrml and it works just fine. Then I changed it back and I get
the problem.

Also I did another test. I called the main host "darkstar" and the
gitorious virtualhost "gitoriousServer". Meaning I did not use host
gitorious.darkstar. With this if I got to gitoriousServer it waits a
bit and then gitorious run just fine.

I really think it is a waiting time. In my host gitorious takes few
seconds to start the first time (after shutdown for example), and if a
virtual host like gitorious.darkstar apache does not wait for it and
falls into the default server.



On Jun 30, 2:16 pm, Rodrigo Rosenfeld Rosas<[email protected]>
wrote:
Em 30-06-2011 04:56, Carlos Quiros escreveu:

I try that and it works fine. The browser waits for few seconds for
Gitorious to load and then it loads correctly. Creation of projects
and commits works just fine!
Might it be a waiting time for apache? If the waiting time for the
virtual server exceeds the limit then falls to the main server?
I doubt that. I don't think this problem is related to Gitorious in any
way. Try to separate your problems. Simulate the Gitorious server as
another static HTML pages in Apache and try to use both of them (using
HTTP and HTTPS if you have enabled ssl in gitorious.yml) with separate
domain names for testing your virtual server configurations. If you can
get this to work, try to replace the static HTML pages with the
Gitorious passenger application to see if it causes any troubles...

Splitting the tasks makes it easier to try to find what is the reason
why it is not working...

--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to