mattblissett / apache-gallery Goto Github PK
View Code? Open in Web Editor NEWApache::Gallery - mod_perl handler to create an image gallery
License: Other
Apache::Gallery - mod_perl handler to create an image gallery
License: Other
I just upgraded a working old Apache::Gallery 1.0.2 to this modified version.
Accessing the thumbnails and HTML pages works, but images result in 403 Forbidden.
I increased the LogLevel
to trace8
and this gives me:
[Sun Aug 19 19:10:56.268372 2018] [core:trace5] [pid 3823:tid 140609645967104] protocol.c(621): [client 192.168.0.144:45939] Request received from client: GET /korn/Egyeb/Viragok/hibiszkusz%207 HTTP/1.1
[Sun Aug 19 19:10:56.268469 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(322): [client 192.168.0.144:45939] Headers received from client:, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268479 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] Host: gallery.elan.rulez.org, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268485 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] Cache-Control: max-age=0, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268491 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] Upgrade-Insecure-Requests: 1, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268497 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] DNT: 1, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268504 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3493.3 Safari/537.36 OPR/56.0.3031.0 (Edition developer), referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268511 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268518 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] Referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268524 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] Accept-Encoding: gzip, deflate, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268530 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] Accept-Language: en-US,en;q=0.9, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268535 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] Cookie: GallerySize=800, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268551 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] GEOIP_ADDR: 192.168.0.16, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268558 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] X-Forwarded-For: 192.168.0.16, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268564 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] X-Forwarded-Host: gallery.elan.rulez.org, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268570 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] X-Forwarded-Server: gallery.elan.rulez.org, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268576 2018] [http:trace4] [pid 3823:tid 140609645967104] http_request.c(326): [client 192.168.0.144:45939] Connection: Keep-Alive, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268598 2018] [rewrite:trace2] [pid 3823:tid 140609645967104] mod_rewrite.c(476): [client 192.168.0.144:45939] 192.168.0.144 - - [gallery.elan.rulez.org/sid#7fe251400e58][rid#7fe25444c0a0/initial] init rewrite engine with requested uri /korn/Egyeb/Viragok/hibiszkusz 7, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268611 2018] [rewrite:trace1] [pid 3823:tid 140609645967104] mod_rewrite.c(476): [client 192.168.0.144:45939] 192.168.0.144 - - [gallery.elan.rulez.org/sid#7fe251400e58][rid#7fe25444c0a0/initial] pass through /korn/Egyeb/Viragok/hibiszkusz 7, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268771 2018] [authz_core:debug] [pid 3823:tid 140609645967104] mod_authz_core.c(835): [client 192.168.0.144:45939] AH01628: authorization result: granted (no directives), referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.268781 2018] [core:trace3] [pid 3823:tid 140609645967104] request.c(293): [client 192.168.0.144:45939] request authorized without authentication by access_checker_ex hook: /korn/Egyeb/Viragok/hibiszkusz 7, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269304 2018] [core:trace1] [pid 3823:tid 140609645967104] util_script.c(79): [client 192.168.0.144:45939] Not exporting header with invalid name as envvar: ADDR, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269706 2018] [perl:info] [pid 3823:tid 140609645967104] [client 192.168.0.144:45939] Apache Gallery request for /korn/Egyeb/Viragok/hibiszkusz 7.jpg?, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269816 2018] [perl:info] [pid 3823:tid 140609645967104] [client 192.168.0.144:45939] Image file: /korn/Egyeb/Viragok/hibiszkusz 7.jpg, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269848 2018] [perl:info] [pid 3823:tid 140609645967104] [client 192.168.0.144:45939] Sending full-sized image, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269917 2018] [http:trace3] [pid 3823:tid 140609645967104] http_filters.c(1006): [client 192.168.0.144:45939] Response sent with status 403, headers:, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269926 2018] [http:trace5] [pid 3823:tid 140609645967104] http_filters.c(1013): [client 192.168.0.144:45939] Date: Sun, 19 Aug 2018 17:10:56 GMT, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269933 2018] [http:trace5] [pid 3823:tid 140609645967104] http_filters.c(1016): [client 192.168.0.144:45939] Server: Apache, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269940 2018] [http:trace4] [pid 3823:tid 140609645967104] http_filters.c(835): [client 192.168.0.144:45939] Content-Location: hibiszkusz%207.jpg, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269947 2018] [http:trace4] [pid 3823:tid 140609645967104] http_filters.c(835): [client 192.168.0.144:45939] Vary: negotiate, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269953 2018] [http:trace4] [pid 3823:tid 140609645967104] http_filters.c(835): [client 192.168.0.144:45939] TCN: choice, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269959 2018] [http:trace4] [pid 3823:tid 140609645967104] http_filters.c(835): [client 192.168.0.144:45939] Content-Length: 244, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269965 2018] [http:trace4] [pid 3823:tid 140609645967104] http_filters.c(835): [client 192.168.0.144:45939] Keep-Alive: timeout=5, max=100, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269971 2018] [http:trace4] [pid 3823:tid 140609645967104] http_filters.c(835): [client 192.168.0.144:45939] Connection: Keep-Alive, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.269977 2018] [http:trace4] [pid 3823:tid 140609645967104] http_filters.c(835): [client 192.168.0.144:45939] Content-Type: text/html; charset=iso-8859-1, referer: http://gallery.elan.rulez.org/korn/Egyeb/Viragok/
[Sun Aug 19 19:10:56.270014 2018] [core:trace6] [pid 3823:tid 140609645967104] core_filters.c(525): [client 192.168.0.144:45939] core_output_filter: flushing because of FLUSH bucket
[Sun Aug 19 19:11:01.275265 2018] [core:trace6] [pid 3823:tid 140609645967104] core_filters.c(525): [client 192.168.0.144:45939] core_output_filter: flushing because of FLUSH bucket
So, perl says "sending full-sized image", and then for some reason Apache sends a 403 page.
If I downgrade to 1.0.2, it works again.
Unfortunately I have no idea how to troubleshoot this further.
Hey,
I'm using your version of A::G at nathue.dk, and the slideshow function seems to be broken a bit.
For some reason $IMAGEURI contains the file name extension when trying to turn slideshow off, which results in a 403 error..
Is this a bug or something wrong in my end?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.