Not sure if this qualifies as a bug report, but wanted to let others know the problem I ran into.
I'm using XAMPP on Windows 7 for my local development and received a Service unavailable 503 Error page when trying to access certain Drupal examples.
This produces an error in the local site error logs:
[Sat Feb 19 08:34:50 2011] [error] (OS 10061)No connection could be made because the target machine actively refused it. : proxy: AJP: attempt to connect to 127.0.0.1:8009 (127.0.0.1) failed
[Sat Feb 19 08:34:50 2011] [error] ap_proxy_connect_backend disabling worker for (127.0.0.1)
[Sat Feb 19 08:34:50 2011] [error] proxy: AJP: failed to make connection to backend: 127.0.0.1
The cause of this is the Tomcat configuration in XAMPP.
Go to
C:\xampp\apache\conf\extra\httpd-ajp.conf
and comment out the line:
ProxyPass /examples ajp://127.0.0.1:8009/examples smax=0 ttl=60 retry=5
It should fix everything. Unless you want to see Tomcat examples of course.
Comments
Comment #1
rfayThanks for reporting this!
Comment #3
decibel.places commentedstill an issue with xampp, the fix in OP works for me
Comment #4
ilo commentedSure it is an issue with tomcat, as long as /examples is a busy resource for the tomcat manager. But it is not -XAMPP- related bug, it is XAMPP with TOMCAT.
It would be the same case as using any other apache redirection preventing drupal paths to work.
Comment #5
Ace Cooper commentedI confirm the same behaviour for Drupal 7 on XAMPP 1.7.4 even without TomCat installed:
the parts of Examples module end up showing "Service unavailable!" error bacause of the preconfigured redirect.
To fix it navigate to file:
C:\xampp\apache\conf\extra\httpd-ajp.confand comment out the following line with #:
ProxyPass /examples ajp://127.0.0.1:8009/examples smax=0 ttl=60 retry=5Then restart the server and enjoy these great Examples.
Comment #6
Ace Cooper commentedComment #7
trampjuice commentedGreat just ran into it - well spotted
Comment #8
orendain commentedGreat catch rbruhn, thanks for passing along the temporary fix
Comment #9
dready2011 commentedThanks for posting, now i can enjoy examples as well!
Comment #10
johnlaine commentedThank you! Appreciate you taking the time to post it, saved me a lot of time and frustration.
Comment #11
rpmskret commentedI tore down the examples module yesterday to about 10 lines of code and even that didn't work .. until changing the menu path 0 arg to something other than examples. Suddenly path was arrived at in the browser without the error 503 and the code ran. Just did the same as @rbruhn and now the whole thing seems to be fine. XAMPP version = ?; Apache 2,2,17
Comment #12
koushikuk commentedThanks a lot. It works perfectly.
Comment #13
mchar commentedThanks @Ace Cooper, ti works great!
Comment #14
drebroff commentedthanks, got same problem
Comment #15
gung wang commentedVery helpful. Thank you so much!
XAMPP 3.2.4; Drupal 9.3.12.