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

Closed
GoogleCodeExporter opened this issue Apr 6, 2015 · 4 comments

Comments

@GoogleCodeExporter
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 127.0.0.1 instead of 127.0.0.1:8080 
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
header)?

[mod_pagespeed 0.9.8.1-215] http://127.0.0.1/stylesheets/base_7189.css:0: 
serf_context_run error status=111 (Connection refused)


On what operating system?

Ubuntu 

Which version of Apache?

2.29

Which MPM?

Worker

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



Original issue reported on code.google.com by john%pro...@gtempaccount.com on 21 Nov 2010 at 9:43

@GoogleCodeExporter
Copy link
Author

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 jmara...@google.com on 21 Nov 2010 at 12:24

@GoogleCodeExporter
Copy link
Author

Here is the additional information: 

The configuration is as follows:
1)     ModPagespeedDomain http://staging.zoomin.co.nz
    ModPagespeedDomain http://images.zoomin.co.nz
2) http://staging.zoomin.co.nz is a proxy to an internal address 127.0.0.1:8080 
.
3) I hit "http://staging.zoomin.co.nz" to get the behaviour.
4) CSS <link href="/stylesheets/base_7189.css" media="screen" rel="Stylesheet" 
type="text/css"/>

Original comment by john%pro...@gtempaccount.com on 21 Nov 2010 at 8:32

Attachments:

@GoogleCodeExporter
Copy link
Author

How are you setting up the proxy to 127.0.0.1:8080.

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 jmara...@google.com on 23 Nov 2010 at 4:42

@GoogleCodeExporter
Copy link
Author

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

Original comment by jmara...@google.com 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.
Projects
None yet
Development

No branches or pull requests

1 participant