Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Rewriting images fails to load original image from alternative port #107

GoogleCodeExporter opened this issue Apr 6, 2015 · 4 comments


Copy link

What steps will reproduce the problem?
1. I'm running a version of apache under a proxy . The site is configured to 
port  localhost:8080
2. Image rewrite requests are going to just instead of 
3. See error below.

What is the expected output? What do you see instead?

Expect to 

What version of the product are you using (please check X-Mod-Pagespeed

serf_context_run error status=111 (Connection refused)

On what operating system?


Which version of Apache?


Which MPM?


Please provide any additional information below, especially a URL or an
HTML file that exhibits the problem.

Original issue reported on by on 21 Nov 2010 at 9:43

Copy link

The 'worker' MPM has not been tested; only pre-fork.  But this seems unrelated 
to this issue.  We'd love to hear about your experiences on the 'worker' MPM 
once this is resolved.

Can you give a more complete set of logs like this:
  1. set your loglevel to 'info'
  2. stop your server
  3. delete your log
  4. start your server
  5. refresh your page from your browser
  6. attach the contents of the log to this Issue
That might tell us some useful things (as well as a few things we'll need to 
ignore).  You'll want to set your loglevel back to 'warn' or something after 
that so you don't fill your disk.

Other information that would be useful:

 - any ModPagespeedDomain lines in your conf file
 - the URL you used in your browser to exhibit this behavior
 - the HTML fragment referencing stylesheets/base_7189.css

Original comment by on 21 Nov 2010 at 12:24

Copy link

Here is the additional information: 

The configuration is as follows:
1)     ModPagespeedDomain
2) is a proxy to an internal address 
3) I hit "" to get the behaviour.
4) CSS <link href="/stylesheets/base_7189.css" media="screen" rel="Stylesheet" 

Original comment by on 21 Nov 2010 at 8:32


Copy link

How are you setting up the proxy to

By the way we have added new conf file directives ModPagespeedMapRewriteDomain 
and ModPagespeedMapOriginDomain so that we can do this transformation for you 
in mod-pagespeed.

This is in the SVN trunk but is not in the branch made last friday or the 
binary release we will make this week.

Original comment by on 23 Nov 2010 at 4:42

Copy link

This is fixed via the directive ModPagespeedMapOriginDomain.  See the FAQ.

Original comment by on 3 Dec 2010 at 11:13

  • Changed state: Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

1 participant