globocom / GloboDNS

Api to manage Bind Name Server
Apache License 2.0
139 stars 51 forks source link

Application error #9

Closed moondal closed 7 years ago

moondal commented 8 years ago

erroe message

web

Application error Rails application failed to start properly

It was along the same error occurs. Please contact what to proceed with the installation again in any part .

help...

marceloboeira commented 8 years ago

@moondal can you please provide more information? (Such as the steps to reproduce, stack trace).

moondal commented 8 years ago

hi If you proceed with the test it does not respond .  this is "httpd.conf" <VirtualHost *:80>    ServerName ansible0101    DocumentRoot /home/globodns/globodns/public    <Directory /home/globodns/globodns/public>      AllowOverride all      Options -MultiViews    ------ Original Message ------ Date: Thursday, Apr 21, 2016 03:21:40 AM From: "Marcelo Boeira" notifications@github.com To: "globocom/GloboDNS" GloboDNS@noreply.github.com Cc: "moondal" mdhzzangu@nate.com, "Mention" mention@noreply.github.com Subject: Re: [globocom/GloboDNS] Application error (#9)

@moondal can you please provide more information? (Such as the steps to reproduce, stack trace).

—You are receiving this because you were mentioned.Reply to this email directly or view it on GitHub

moondal commented 8 years ago

httpd error log is (2)No such file or directory: exec of '/home/globodns/globodns/public/dispatch.cgi' failed Premature end of script headers: dispatch.cgi

ernestothorp commented 8 years ago

Have you followed all steps in https://github.com/globocom/GloboDNS/blob/master/doc/setup.md ?

I guess you are only using apache to run the application. This doesn't work. You'll need to run an application server such as unicorn (recommended) or passenger.

Your VHost should look like this:

<VirtualHost *:80>
    ServerName yourdomain.example

    # Tell Apache and Passenger where your app's 'public' directory is
    DocumentRoot /path-to-your-application/public

    RewriteEngine On

    <Proxy balancer://unicornservers>
      BalancerMember http://127.0.0.1:8080
    </Proxy>
    # Redirect all non-static requests to thin
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
    RewriteRule ^/(.*)$ balancer://unicornservers%{REQUEST_URI} [P,QSA,L]

   # NOTE Uncomment if you want Unicorn to serve static content
   # ProxyPass / balancer://unicornservers/
   # ProxyPassReverse / balancer://unicornservers/
   # ProxyPreserveHost on

    <Proxy *>
      Order deny,allow
      Allow from all
    </Proxy>

</VirtualHost>
anacarolinacastro commented 7 years ago

@moondal it worked?