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

rfay’s picture

Category: bug » support
Status: Active » Fixed

Thanks for reporting this!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

decibel.places’s picture

Version: » 6.x-1.x-dev
Priority: Normal » Minor
Status: Closed (fixed) » Active

still an issue with xampp, the fix in OP works for me

ilo’s picture

Sure 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.

Ace Cooper’s picture

I 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.conf
and comment out the following line with #:
ProxyPass /examples ajp://127.0.0.1:8009/examples smax=0 ttl=60 retry=5
Then restart the server and enjoy these great Examples.

Ace Cooper’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Closed (fixed)
trampjuice’s picture

Great just ran into it - well spotted

orendain’s picture

Great catch rbruhn, thanks for passing along the temporary fix

dready2011’s picture

Thanks for posting, now i can enjoy examples as well!

johnlaine’s picture

Thank you! Appreciate you taking the time to post it, saved me a lot of time and frustration.

rpmskret’s picture

I 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

koushikuk’s picture

Thanks a lot. It works perfectly.

mchar’s picture

Issue summary: View changes

Thanks @Ace Cooper, ti works great!

drebroff’s picture

thanks, got same problem

gung wang’s picture

Very helpful. Thank you so much!

XAMPP 3.2.4; Drupal 9.3.12.