Plutons Posted June 19, 2012 Report Share Posted June 19, 2012 (edited) 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 June 19, 2012 by Plutons Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted June 19, 2012 Report Share Posted June 19, 2012 Nav SeLinux fīča? http://www.techiegyan.com/2008/08/31/http-proxy-problem-permission-denied-proxy-http-attempt-to-connect-to-1270018080/ Quote Link to comment Share on other sites More sharing options...
Plutons Posted June 19, 2012 Author Report Share Posted June 19, 2012 (edited) 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 June 19, 2012 by Plutons Quote Link to comment Share on other sites More sharing options...
marrtins Posted June 20, 2012 Report Share Posted June 20, 2012 Tak iepostē, kā atrisināji. Quote Link to comment Share on other sites More sharing options...
Plutons Posted June 20, 2012 Author Report Share Posted June 20, 2012 /etc/apache2 mapē failā ports.conf pievienoju šādas rindiņas <IfModule mod_proxy.c> Listen 5000 </IfModule> Quote Link to comment Share on other sites More sharing options...
edgarsj Posted June 20, 2012 Report Share Posted June 20, 2012 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. Quote Link to comment Share on other sites More sharing options...
Plutons Posted June 20, 2012 Author Report Share Posted June 20, 2012 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.