This question is not answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 14 - Pages: 1 - Last Post: 01-Aug-2017 06:20 Last Post By: jGromit
jnasebastian

Posts: 12
Registered: 30-Mar-2008
Album in an iframe failing?
Posted: 30-Jul-2017 05:07
 
  Click to reply to this thread Reply
Hi all,

I am using Jalbum 13.10 with Turtle 5.6.1. Have generated an album website which used to work well on my website, however is not displaying at all due to iframes.

Basically my domain name redirects it to my website which as dynamic IP (via redirect command) and uses cloaking to mask the destination.I use Dyndns to manage the IP where my website sits.

This has been working fine until recently after I generated my latest album; and all I get is a blank screen after the redirect.

MS Edge says the publisher (me or the website) doesn't allow the site to be displayed in a frame; Chrome and Firefox just display a blank screen.

Anyone has a clue as to why this is happening or has a fix?

Please help.

Thank you.
jimberry

Posts: 7,465
Registered: 30-Aug-2004
Re: Album in an iframe failing?
Posted: 30-Jul-2017 05:36   in response to: jnasebastian in response to: jnasebastian
 
  Click to reply to this thread Reply
Can you supply a link to a working album and a non-working album?
jnasebastian

Posts: 12
Registered: 30-Mar-2008
Re: Album in an iframe failing?
Posted: 30-Jul-2017 05:46   in response to: jimberry in response to: jimberry
 
  Click to reply to this thread Reply
The working link (from the alias in DynDns) http://www.jnasebastian.dyndns.org

The redirect from my domain that doesn't work is http://www.jnasebastian.com

The JAlbum website sits behind the IP that is pointed to by the DynDns alias.

Thank you.
jGromit

Posts: 33,160
Registered: 31-Jan-2006
Re: Album in an iframe failing?
Posted: 30-Jul-2017 07:00   in response to: jnasebastian in response to: jnasebastian
 
  Click to reply to this thread Reply
It doesn't look like this has anything to do with jAlbum. In the Firefox console, I'm seeing this:
Load denied by X-Frame-Options: http://www.jnasebastian.dyndns.org/ does not permit cross-origin framing.  (unknown)
Chrome is equally unhappy about it:
Refused to display 'http://www.jnasebastian.dyndns.org/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
I may be missing something, but AFAIK, there's nothing in a Turtle album about framing. You'll probably need to ask the DynDNS folks about this.

Does it work if you temporarily replace the album with a very simple, stripped-down index.html, consisting of just this?
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Test Page</title>
</head>
<body>
This is the entire page.
<body>
</html>
Slightly off-topic, but the DynDNS site isn't even using an iframe - it's using a frameset, which is truly obsolete. Most mobile devices, for example, will choke on that completely. And the frameset page has no valid DOCTYPE, which is going to cause further issues going forward. It might be time to reconsider this entire approach, and just get a nice, simple, inexpensive web host (but not one owned by EIG!).
jnasebastian

Posts: 12
Registered: 30-Mar-2008
Re: Album in an iframe failing?
Posted: 30-Jul-2017 07:03   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Thanks for the tips - will investigate further.
karlmistelberger

Posts: 732
Registered: 5-Dec-2013
Re: Album in an iframe failing?
Posted: 30-Jul-2017 14:20   in response to: jnasebastian in response to: jnasebastian
 
  Click to reply to this thread Reply
jnasebastian wrote:

Anyone has a clue as to why this is happening or has a fix? Please help.
erlangen:~ # curl -I http://www.jnasebastian.dyndns.org/
HTTP/1.1 200 OK
Date: Sun, 30 Jul 2017 12:17:07 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Upgrade: h2
Connection: Upgrade
Last-Modified: Wed, 05 Jul 2017 08:41:48 GMT
ETag: "1e24-5538df87d2b00"
Accept-Ranges: bytes
Content-Length: 7716
Vary: Accept-Encoding
Content-Type: text/html
 
erlangen:~ # 
Your Apache is configured with X-Frame-Options: SAMEORIGIN. ;-)
jnasebastian

Posts: 12
Registered: 30-Mar-2008
Re: Album in an iframe failing?
Posted: 30-Jul-2017 23:27   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
Can you provide a fix? Do I change the Apache config file? .htaccess or httpd.conf?

What do I change this to?

Sorry for these questions, I am using Apache out of a NAS box with default config, and am not technical enough to fix it.

However if you can provide the changes required, I may be able to SSH to the root and make the changes.

Thanks
jGromit

Posts: 33,160
Registered: 31-Jan-2006
Re: Album in an iframe failing?
Posted: 31-Jul-2017 00:13   in response to: jnasebastian in response to: jnasebastian
 
  Click to reply to this thread Reply
jnasebastian wrote:
Sorry for these questions, I am using Apache out of a NAS box with default config, and am not technical enough to fix it.

I think we've just put our fingers on the problem. If you're not technical enough to fix it, you shouldn't be using it. Right?
jnasebastian

Posts: 12
Registered: 30-Mar-2008
Re: Album in an iframe failing?
Posted: 31-Jul-2017 00:18   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
You're certainly not helping with comments like that! Not everyone who's using JAlbum and out of the box web servers are uber technical...not all of us can afford technical support or a pro environment....

Some of us depend on the kindness of strangers and helpful people to fix the issues and move along.
jnasebastian

Posts: 12
Registered: 30-Mar-2008
Re: Album in an iframe failing?
Posted: 31-Jul-2017 00:23   in response to: jnasebastian in response to: jnasebastian
 
  Click to reply to this thread Reply
Never mind, I found that if I set ALLOW-FROM uri in the httpd.conf file I should allow an exception.

Will try it out tonight.

Thank you user karlmistelberger

Edited by: jnasebastian on 31-Jul-2017 00:23
jGromit

Posts: 33,160
Registered: 31-Jan-2006
Re: Album in an iframe failing?
Posted: 31-Jul-2017 00:29   in response to: jnasebastian in response to: jnasebastian
 
  Click to reply to this thread Reply
jnasebastian wrote:
You're certainly not helping with comments like that! Not everyone who's using JAlbum and out of the box web servers are uber technical...not all of us can afford technical support or a pro environment....

Some of us depend on the kindness of strangers and helpful people to fix the issues and move along.


Oh, c'mon. I don't run my own server because I don't want to be bothered figuring out all the details. You can get web hosting for less than $5 a month. This is hardly a "pro environment" - it's less than the cost of a single fancy coffee from Starbucks. Per month.

And frankly, the connection you get from most ISP's isn't fast enough or robust enough to be supporting a server. It's a lousy solution, all to save what amounts to pocket change.

If you don't know how to run a server, you shouldn't be running a server. It's that simple.

Edit: And BTW, you seem to be perfectly happy taking up other people's time and effort all in your quest to save a few bucks. Thanks a lot for that. You just keep pissing in that well. I'm sure it will work out fine.
karlmistelberger

Posts: 732
Registered: 5-Dec-2013
Re: Album in an iframe failing?
Posted: 31-Jul-2017 07:04   in response to: jnasebastian in response to: jnasebastian
Helpful
  Click to reply to this thread Reply
jnasebastian wrote:
Never mind, I found that if I set ALLOW-FROM uri in the httpd.conf file I should allow an exception.

Apache has a powerful configuration concept. The default configuration on my machine has already 60 files referring to Apache. For seamless browsing of my albums in the LAN I added /etc/apache2/conf.d/Albums.conf: http://jalbum.net/help/de/JAlbum_im_Heimnetz

On my machine /etc/apache2/httpd.conf is owned by apache2-2.4.26-1.2.x86_64. Changes to that file will be lost upon update of Apache. Local modifications are made in directory /etc/apache2/conf.d/:
erlangen:~ # ll /etc/apache2/conf.d/ 
-rw-r--r-- 1 root root  158 Dec  1  2016 Albums.conf
-rw-r--r-- 1 root root  195 Feb  5 09:14 DokuWiki.conf
-rw-r--r-- 1 root root  361 Jul 18 01:00 gitweb.conf
-rw-r--r-- 1 root root  793 Jul 17 20:05 manual.conf
-rw-r--r-- 1 root root  354 Jun 30 19:29 php5.conf
erlangen:~ #
jnasebastian

Posts: 12
Registered: 30-Mar-2008
Re: Album in an iframe failing?
Posted: 31-Jul-2017 07:24   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
Thanks, I will check the conf files.

Looks like the problem started with a switch of NAS servers a few weeks ago, and the Apache config files are slightly different, causing the problem. I need to check what changes were made in the config files from the previous server and reapply the changes.

As the changes were made by someone else and not documented, I was lost for a bit as to the cause!
jnasebastian

Posts: 12
Registered: 30-Mar-2008
Re: Album in an iframe failing?
Posted: 01-Aug-2017 01:25   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
Hey karlmistelberger

Made the changes to the .htaccess file, and now the header looks like this:

Server:Apache
x-frame-options:SAMEORIGIN, ALLOW-FROM=http://www.jnasebastian.com
upgrade:h2
connection:Upgrade, close
last-modified:Wed, 05 Jul 2017 08:41:48 GMT
etag:"1e24-5538df87d2b00-gzip"
accept-ranges:bytes
vary:Accept-Encoding
content-encoding:gzip
content-length:3020
content-type:text/html


At least the redirect now works, so the site owners are happy to keep it that way even if the cloaking doesn't fully work.

(I am using the site owners account in JAlbum to post these, as they are actually in a different country and I volunteer to assist them. Hopefully the troll will be quiet with it's unsolicited comments!!)

Thanks for your help so far, much appreciated.
jGromit

Posts: 33,160
Registered: 31-Jan-2006
Re: Album in an iframe failing?
Posted: 01-Aug-2017 06:20   in response to: jnasebastian in response to: jnasebastian
 
  Click to reply to this thread Reply
jnasebastian wrote:
Hopefully the troll will be quiet with it's unsolicited comments!!

The "troll" is an admin on this site. You want me to shut down this account? One more remark like that, and you're gone. Understood?
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums