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

Relative img links generate errors #124

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

Relative img links generate errors #124

GoogleCodeExporter opened this issue Apr 6, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a img src with a relative link for ex. (<img 
src="path1/path2/image.jpg">)
2. Use rewrite_images
3. Watch the error log produce some errors

What is the expected output? What do you see instead?
Expected to see an image rewrite, instead the error log generates a lot of 
errors:
xx.xxx.xx.xxx - - [01/Dec/2010:19:57:42 +0100] "GET /php5bin/php/ 
coppermine/path1/path2/thumb.jpg HTTP/1.1" 500 - "-" "Serf/0.3.1 
mod_pagespeed/0.9.10.1-250" 

What version of the product are you using (please check X-Mod-Pagespeed
header)?
0.9.10.1-250

On what operating system?
Centos 5.5 64Bit

Which version of Apache?
2.2.16

Which MPM?
Prefork, but also tested it on Worker, same issue

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

http://appleseen.com/coppermine/

Original issue reported on code.google.com by pdreis...@gmail.com on 1 Dec 2010 at 8:37

@GoogleCodeExporter
Copy link
Author

Original comment by abl...@google.com on 3 Dec 2010 at 3:36

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Original comment by jmaes...@google.com on 4 Dec 2010 at 12:16

  • Changed title: Relative img links generate errors

@GoogleCodeExporter
Copy link
Author

I believe this issue is fixed.

Original comment by jmara...@google.com on 14 Jan 2011 at 6:18

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

I'm having this issue with the latest version 

90.90.160.10 - - [12/Feb/2011:05:29:06 -0500] "GET 
/php5bin/php/wp-content/themes/onecol/images/home/201007-banner1.png HTTP/1.1" 
500 - "-" "Serf/0.3.1 mod_pagespeed/0.9.15.3-404"

The problem seems to be related to mod_pagespeed with php_fcgi as it tries to 
query "/php5bin/php/" + the actual path.

Examples: http://www.conexcol.net.co and http://www.colfutbol.org

Original comment by conex...@gmail.com on 12 Feb 2011 at 10:32

@GoogleCodeExporter
Copy link
Author

I just took a look at http://www.conexcol.net.co and I found the img link 
"wp-content/....-banner1.png" but I don't see any reference in the HTML page to 
"/php5bin/php/".

I'm trying to think of why mod_pagespeed would think that the page was based 
there.  How does /php5bin/php/ relate to this site?  I'm afraid I'm not yet 
very familiar with php_fcgi or PHP at all, for that matter.  But the critical 
question here is whether php_fcgi or some other module (e.g. mod_rewrite) does 
some kind of redirect or rewriting of the URL internally that makes 
mod_pagespeed think that the base URL of the page has "/php5bin/php/" in it.

Original comment by jmara...@google.com on 12 Feb 2011 at 2:10

@GoogleCodeExporter
Copy link
Author

Relative image links generated errors - Google Code
to check on my page http://mulatahosting.com/ do not see this error occurs, 
that's good.

Original comment by arcesio...@gmail.com on 5 Sep 2012 at 4:26

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