Jump to content
php.lv forumi

apache+thin


Recommended Posts

Sveiki! Pašlaik meģinu sainstalēt serveri priekš Ruby on Rails aplikāciju hostēšanas..

 

izmantoju apache+thin

 

[error] ap_proxy_connect_backend disabling worker for (127.0.0.1)

[error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:5002 (127.0.0.1)

 

Kads no jums varbūt zin kā šo atrisināt, pats google nemācēju atrast risinājumu

Edited by Plutons
Link to comment
Share on other sites

Joks tāds ka man nemaz nav Selinux

 

 

ok, no ta tiku vaļā, tagad ar 404 error jāizcīnas

 

Joks tāds access.log rāda ka tieku pie lapas klāt, bet browseri visi kas uz pc met man 404 error

Edited by Plutons
Link to comment
Share on other sites

Man liekas, ka tev tur kaut kas galīgi greizi. Piemērs no mana apache konfiga:

 

<VirtualHost *:80>
 ServerName fyz.nn
 DocumentRoot /usr/local/share/redmine/public
 RewriteEngine On
 <Proxy balancer://fyznn>
BalancerMember http://127.0.0.1:5000
BalancerMember http://127.0.0.1:5001
BalancerMember http://127.0.0.1:5002
 </Proxy>
 # Redirect all non-static requests to thin
 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
 RewriteRule ^/(.*)$ balancer://fyznn%{REQUEST_URI} [P,QSA,L]
 ProxyPass / balancer://fyznn/
 ProxyPassReverse / balancer://fyznn/
 ProxyPreserveHost on
 <Proxy *>
Order deny,allow
Allow from all
 </Proxy>
....
</VirtualHost>

 

Un mani thin daemoni griežas uz 5000, 5001 un 5002 porta attiecīgi.

Man liekas, ka tas ko tu esi izdarījis - panācis, ka apache mēģina pats pie sevis slēgties.

Link to comment
Share on other sites

Mans apache konfigs ir šāds

<VirtualHost *:80>
 ServerName ror
 DocumentRoot /var/www/ror/public
 RewriteEngine On
 <Proxy balancer://thinservers>
    	BalancerMember http://127.0.0.1:5000
   	BalancerMember http://127.0.0.1:5001
   	BalancerMember http://127.0.0.1:5002

 </Proxy>
 # Redirect all non-static requests to thin
 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
 RewriteRule ^/(.*)$ balancer://thinservers%{REQUEST_URI} [P,QSA,L]
 ProxyPass / balancer://thinservers/
 ProxyPassReverse / balancer://thinservers/
 ProxyPreserveHost on
 <Proxy *>
Order deny,allow
Allow from all
 </Proxy>
.....
</VirtualHost>

plus tagad saliku lai ir trīs thin daemoni

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...