Content cannot be displayed in a frame

Hi there,

I need your help as this is the first time I have run a server and Apple Care seems to be stumped by the issue. I am a complete novice at this.

I decided to set up my own server to host email and my website. I have two domaine names: jeffhargrove.com and jeffhargrove.net.

I set up the server for email and webservices for jeffhargrove.com. Then to test if everything was working, I first changed the dns of my .net domain to point to my server. I specified that jeffhargrove.net and www.jeffhargrove.net were alias of jeffhargrove.com.

Under this configuration, email and the site www.jeffhargrove.net worked fine. I changed some text in one of the html files on my server to make sure that the site was loading off my server. It was.

As everything was working, I then pointed jeffhargrove.com domain to my server. Email works fine and any mail that is addressed to jeffhargrove.net arrives in my jeffhargrove.com inbox. Mail alias seems to be working.

www.jeffhargrove.com works fine, but www.jeffhargrove.net works partially. Pages load until there is a reference to "http://wwww.jeffhargrove.com/portfolios/.…html" This reference appears because iWeb uses an iFrame to load a slideshow that I created for my site. In Safari, the frame just does not load and there is an empty space where the slide show should be. In Firefox, it returns the message:

This content cannot be displayed in a frame
To protect your security, the publisher of this content does not allow it to be displayed in a frame.

Apple Care did not know of any setting on the server that would prevent this from happening. The rep did not know about Apache modules which he said might be able to enable loading content in frames. I checked out the different modules available and cannot seem to find one that might resolve the issue. The rep did have me check all the permissions on all my web files and they seem correct.

Would you happen to have any idea what might be causing this issue. My site was hosted on a commercial server service with the same files and same alias and worked fine. This leads me to believe that there is a setting on mac os x server that is preventing content in frames to be displayed.

Thanks for any help you might offer!

Jeff

MBP 3.06Gz 8G ram/mini server, Mac OS X (10.6.6)

Posted on Feb 28, 2011 5:17 AM

Reply
4 replies

Feb 28, 2011 6:03 AM in response to Jeff Hargrove

I'm having the same problem with 10.6.6 web content not showing in a frame. Before I upgraded from 10.5.8, everything was working fine, as use my webserver to load content into our online CMS Blackboard. I really want to know what modules changed from 10.5.8 to 10.6.6.

On another note, one of folders in the webserver seem to have been damaged, it can longer be accessed from the web. I've checked the permissions, deleted and renamed the folder, still no luck. Any ideas?

Feb 28, 2011 2:59 PM in response to radlab

Apple Care called me back and gave me a solution to the problem after the tech researched a bit.

New server software (from what version I do not know) changed the default display option of content in frames. By default it is blocked. There is no option to change this in the UI. The change has to done in an Apache config file. Here are the steps:

First stop your web service in Server Admin from your admin account, then:
1. Log into your server as root.
2.In the finder, pull down the "go" menu and select "go to folder.."
3.Type "/etc"
4. Look for a folder called "apache2" and open it.
5. duplicate a file called "httpd teamsrequired.conf" by renaming it or moving it to the desktop
6. Open the file in TextEdit
7. Find the string "x-frame-options"
8. It will be located in a three line paragraph which begins with "<IfModule…." and ends with "</IfModule"
9.Place a pound sign (#) at the beginning of each of the three lines.
10. Save
11 logout of root
12 login into your admin account and restart web services in server admin

Problem should be fixed.

Jeff

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Content cannot be displayed in a frame

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.