Tags:
create new tag
, view all tags

Question

When trying to include the content of an external page, I get this error in the topic view:

Warning This site does not allow INCLUDE of URLs.

How do I fix this?

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RHEL 5
Web server: Apache
Perl version: 5.8.8
Client OS: Ubuntu/Windows
Web Browser: Firefox
Categories: Platform

-- DaveThompsonAnother - 28 Apr 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

There's an option in bin/configure named {INCLUDE}{AllowURLs} which you need to switch on. It is an "expert" option, so you need to click the "Yes, I've read all the documentation" button first. Actually, though reading the documentation might be a good idea, it would not answer your question. smile

-- HaraldJoerg - 28 Apr 2008

Thanks

-- DaveThompsonAnother - 30 Apr 2008

We tried to use this option in Release 4.1.2 but it does not work. Is there a bug or what could be the reason?

-- KirstinWeber - 31 Jul 2008

The option works in 4.1.2 as far as I can say. So if you get the same error message as Dave though you've set the option, then there's something really strange going on which would need a deeper analysis of log files or even debugging.

If, however, "does not work" has other symptoms, it would be helpful if you share them. A frequent cause of problems which I am aware of is that the web server's user id might not be allowed to access the URL; for example because you are in an intranet and there is a proxy you need to pass before reaching the wild wild web.

-- HaraldJoerg - 31 Jul 2008

Closing this question.

-- PeterThoeny - 17 Aug 2008

Yes, we are in an intranet but my description was not exact enough: I want to access an external topic that is contained in another wiki but not in the www. So I stay in our intranet. Is it possible to include topics from another TWiki that is located in in the same intranet?

-- KirstinWeber - 30 Jan 2009

You should be able to INCLUDE a page from another TWiki on your Intranet. You can specify a ?skin=plain to remove the page decoration.

Things to check in case include does not work:

  • {INCLUDE}{AllowURLs} configure setting
  • Apache settings on other TWiki for rules that might deny access (BrowserMatchNoCase and Deny directives). TWiki identifies itself as "TWiki::Net/17396 libwww-perl/5.805" if LWP Perl module is installed.

-- PeterThoeny - 01 Feb 2009

It seems to be not possible to include an URL which is not the top level ! So %INCLUDE{"http://hostname.domain:80/index.html"}% seems to work but %INCLUDE{"http://hostname.domain:80/Level1/index.html"}% gives error "Moved Permanently The document was here" and "here" is a link which opens the document which I have expected to include! Including a topic from another wiki running on the same server is also not possible.

-- RolandGoetz - 03 Feb 2009

"Moved Permanently" is an indication that the page you are trying to access redirects to another page. TWiki's INCLUDE does not support redirects. Include the actual page you see in the browser address bar. Note that redirect may be to a login page if your page requires login.

-- PeterThoeny - 03 Feb 2009

This does not seem to be mentioned on the include help page - it should be

-- AntonPiatek - 10 Feb 2009

Good point, please feel free to update VarINCLUDE, twiki.org is a wiki. smile

-- PeterThoeny - 10 Feb 2009

I did not get "Moved Permanently" but in one line: "Found" and in the next line "The document has moved here." if I use the path to the root directory of the wiki. Why is it not possible to include a topic of another wiki? It is not necessary to login to read the topic so why it is necessary to login in order to include the topic ("Note that redirect may be to a login page if your page requires login. ")? It is a topic that can be read by anybody. Nothing special. When I try to include the actual page I see in the browser I get "Failed to include URL ..."

-- KirstinWeber - 17 Feb 2009

> is not necessary to login to read the topic so why it is necessary to login in order to include the topic

That does seem strange. Can you try an HTTP trace to see if there is still a redirect in the way? (e.g., with HttpWatch).

Be sure to close all your browser sessions first, to ensure that there isn't some cookie that is loggin you in transparently.

-- SeanCMorgan - 17 Feb 2009

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider a subscription for support or engage one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2009-04-17

 
Change status to:
Topic revision: r15 - 2009-04-17 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.