From avazquez.dev at gmail.com Tue Oct 13 07:56:33 2015 From: avazquez.dev at gmail.com (Alex Vazquez) Date: Tue, 13 Oct 2015 13:56:33 +0200 Subject: [Moin-user] migrate to new server. Message-ID: Hi all. I have to migrate a wiki (Moin 1.5.7) to another machine (Moin 1.9.8 and ubuntu server 14.04(64bits)) Can I just create a new wiki instance and copy the directories data and underlay? I have other problem. I try created a wiki instance. I have created a new directory in /usr/local/share/moin and i copy data, underlay, wikiconfig.py and moin.cgi. Later I add the next line int /etc/apache2/sites-available/000-default.conf: ScriptAlias /mywiki "/usr/local/share/moin/mywiki/moin.cgi" but don't work and when I access show me the code of file moin.cgi Any idea why not run? --PC-- Ubuntu server 14.04 (64 bits) Apache/2.4.7 Moin 1.9.8 Thanks. Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: From rb.proj at gmail.com Tue Oct 13 08:15:17 2015 From: rb.proj at gmail.com (R.Bauer) Date: Tue, 13 Oct 2015 14:15:17 +0200 Subject: [Moin-user] migrate to new server. In-Reply-To: References: Message-ID: <561CF5D5.3050705@gmail.com> On 13.10.2015 13:56, Alex Vazquez wrote: > Hi all. > Hi Alex > I have to migrate a wiki (Moin 1.5.7) to another machine (Moin 1.9.8 > and ubuntu server 14.04(64bits)) ok, > > Can I just create a new wiki instance and copy the directories data > and underlay? may be read this https://moinmo.in/HowTo/Migrate%20from%201.5%20to%201.6 > > I have other problem. I try created a wiki instance. I have created a > new directory in /usr/local/share/moin and i copy data, underlay, > wikiconfig.py and moin.cgi. Later I add the next line int > /etc/apache2/sites-available/000-default.conf: > > ScriptAlias /mywiki "/usr/local/share/moin/mywiki/moin.cgi" > > but don't work and when I access show me the code of file moin.cgi We suggest to use wsgi. Have a look into the repository or into the ubuntu documentation http://hg.moinmo.in/moin/1.9/file/01e4a21a5d1d/wiki/server/moin.wsgi The first lines of that file have in comments everything you need in your apache site description file usually you create one for your wikisite and enable it by a2ensite We can also may be help on irc cheers Reimar > > Any idea why not run? > > --PC-- > > Ubuntu server 14.04 (64 bits) > > Apache/2.4.7 > > Moin 1.9.8 > > Thanks. > > Cheers > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > From rb.proj at gmail.com Tue Oct 13 08:18:18 2015 From: rb.proj at gmail.com (R.Bauer) Date: Tue, 13 Oct 2015 14:18:18 +0200 Subject: [Moin-user] Why multiple user files for individual users? In-Reply-To: References: Message-ID: <561CF68A.1080500@gmail.com> On 21.07.2015 10:05, Philip Colmer wrote: > Hi > > Having cleaned up the data/user directory on my system, I've > spotted that some users occasionally are still ending up with > multiple files for their account. > > I've diff'ed the files and the only difference is the last_saved > field so I'm struggling to understand why moin is creating > subsequent files ... Can you show an example of the listing cheers Reimar > > Thanks. > > Philip > > > > ------------------------------------------------------------------------------ > > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support > that you need to offload your IT needs and focus on growing your > business. Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > > > > _______________________________________________ Moin-user mailing > list Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > From lists at localguru.de Wed Oct 14 15:31:13 2015 From: lists at localguru.de (Marcus Schopen) Date: Wed, 14 Oct 2015 21:31:13 +0200 Subject: [Moin-user] Upgrade from 1.2 to 1.9.7 Message-ID: <1444851073.3556.7.camel@cosmo> Hi, is there a way to migrate from version 1.2 to 1.9.7? Basically I don't need to keep the whole data but about 50 single pages without history/changes, therefore a simple copy & paste would be fine. But the syntax seems to be changed. Is there a script to reformat page syntax? Ciao! -- "It's hard to be mad at someone who misses you while you're asleep." -Calvin From rb.proj at gmail.com Thu Oct 15 06:53:42 2015 From: rb.proj at gmail.com (R.Bauer) Date: Thu, 15 Oct 2015 12:53:42 +0200 Subject: [Moin-user] Upgrade from 1.2 to 1.9.7 In-Reply-To: <1444851073.3556.7.camel@cosmo> References: <1444851073.3556.7.camel@cosmo> Message-ID: <561F85B6.1000901@gmail.com> On 14.10.2015 21:31, Marcus Schopen wrote: > Hi, > > is there a way to migrate from version 1.2 to 1.9.7? > > Basically I don't need to keep the whole data but about 50 single pages > without history/changes, therefore a simple copy & paste would be fine. > But the syntax seems to be changed. Is there a script to reformat page > syntax? > > Ciao! > Hi since 1.5.3 you can always use moin --config-dir=/usr/share/moin/mywiki --wiki-url=http://wikiserver/mywiki migration data https://master19.moinmo.in/HelpOnMoinCommand#moin_..._migration_data_... to get to 1.5.3 you have to manually enter all these scripts http://hg.moinmo.in/moin/1.9/file/01e4a21a5d1d/MoinMoin/script/old/migration The syntax convertor from 1.5 to 1.6 is defined in that module. That module is also used by the migration data process http://hg.moinmo.in/moin/1.9/file/01e4a21a5d1d/MoinMoin/script/migration/_conv160_wiki.py cheers Reimar From cfreemesser at mail.cvs.rochester.edu Thu Oct 15 08:42:39 2015 From: cfreemesser at mail.cvs.rochester.edu (Chris Freemesser) Date: Thu, 15 Oct 2015 08:42:39 -0400 Subject: [Moin-user] Migrating wikis from 1.9.3 to 1.9.8 Message-ID: <561F9F3F.5010304@mail.cvs.rochester.edu> (My apologies if this gets posted twice...had a change of e-mail addresses) Hi all. A (hopefully) quick question: If you have wikis created on a server running 1.9.3 and you set up a new server running 1.9.8 with the files (moin executables, location of wiki instances, etc.) in the same place, should you be able to copy over a wiki from the old system to the new one and have it work as-is? Reason I ask is that I've done just this, and when attempting to access a copied wiki on the new server, I get an "Unhandled Exceptions" error. I can create a new wiki instance on the new system without problem. I'm still playing with config files, looking to see if I missed anything simple, but knowing that they *should* work would be helpful. Thanks, Chris _____________________________________________ Chris Freemesser, Systems Administrator University of Rochester Department of Brain and Cognitive Sciences The Center for Visual Science Meliora Hall, Room 255 Phone: (585)275-0786 _____________________________________________ From steve at einval.com Thu Oct 15 08:49:51 2015 From: steve at einval.com (Steve McIntyre) Date: Thu, 15 Oct 2015 13:49:51 +0100 Subject: [Moin-user] Migrating wikis from 1.9.3 to 1.9.8 In-Reply-To: <561F9F3F.5010304@mail.cvs.rochester.edu> References: <561F9F3F.5010304@mail.cvs.rochester.edu> Message-ID: <20151015124951.GC18308@einval.com> On Thu, Oct 15, 2015 at 08:42:39AM -0400, Chris Freemesser wrote: >(My apologies if this gets posted twice...had a change of e-mail addresses) > >Hi all. > >A (hopefully) quick question: > >If you have wikis created on a server running 1.9.3 and you set up a new server >running 1.9.8 with the files (moin executables, location of wiki instances, >etc.) in the same place, should you be able to copy over a wiki from the old >system to the new one and have it work as-is? > >Reason I ask is that I've done just this, and when attempting to access a >copied wiki on the new server, I get an "Unhandled Exceptions" error. I can >create a new wiki instance on the new system without problem. I'm still >playing with config files, looking to see if I missed anything simple, but >knowing that they *should* work would be helpful. You'll just need to clean the cache, most likely: moint maint cleancache -- Steve McIntyre, Cambridge, UK. steve at einval.com "...In the UNIX world, people tend to interpret `non-technical user' as meaning someone who's only ever written one device driver." -- Daniel Pead From cfreemesser at mail.cvs.rochester.edu Thu Oct 15 09:43:19 2015 From: cfreemesser at mail.cvs.rochester.edu (Chris Freemesser) Date: Thu, 15 Oct 2015 09:43:19 -0400 Subject: [Moin-user] Migrating wikis from 1.9.3 to 1.9.8 In-Reply-To: <20151015124951.GC18308@einval.com> References: <561F9F3F.5010304@mail.cvs.rochester.edu> <20151015124951.GC18308@einval.com> Message-ID: <561FAD77.7050509@mail.cvs.rochester.edu> On 10/15/15 8:49 AM, Steve McIntyre wrote: > You'll just need to clean the cache, most likely: > > moint maint cleancache Thanks for the suggestion, but running the command results in a bunch of log lines that concludes with: "MoinMoin.error.ConfigurationError: ImportError: No module named wikiconfig" The copied site still doesn't load. I'll keep tinkering with it, but this thing does seem quite the bear to get working properly. Chris _____________________________________________ Chris Freemesser, Systems Administrator University of Rochester Department of Brain and Cognitive Sciences The Center for Visual Science Meliora Hall, Room 255 Phone: (585)275-0786 _____________________________________________ From paul at boddie.org.uk Thu Oct 15 09:23:23 2015 From: paul at boddie.org.uk (Paul Boddie) Date: Thu, 15 Oct 2015 15:23:23 +0200 Subject: [Moin-user] Migrating wikis from 1.9.3 to 1.9.8 In-Reply-To: <561F9F3F.5010304@mail.cvs.rochester.edu> References: <561F9F3F.5010304@mail.cvs.rochester.edu> Message-ID: <201510151523.23555.paul@boddie.org.uk> On Thursday 15. October 2015 14.42.39 Chris Freemesser wrote: > (My apologies if this gets posted twice...had a change of e-mail addresses) Only one copy received here so far! :-) > Hi all. > > A (hopefully) quick question: > > If you have wikis created on a server running 1.9.3 and you set up a new > server running 1.9.8 with the files (moin executables, location of wiki > instances, etc.) in the same place, should you be able to copy over a wiki > from the old system to the new one and have it work as-is? There should be few real changes to take into consideration: it's not like a migration from a much-earlier version of Moin (like the recent messages about 1.5.x or, astonishingly, 1.2.x) where you might have to process the content for Moin's parser to be happy with it or to upgrade extensions to work with different APIs. > Reason I ask is that I've done just this, and when attempting to access a > copied wiki on the new server, I get an "Unhandled Exceptions" error. I > can create a new wiki instance on the new system without problem. I'm > still playing with config files, looking to see if I missed anything > simple, but knowing that they *should* work would be helpful. The Web server log is the thing to investigate here. I can think of a few things: * Cached content (stuff which is pickled and doesn't always like being unpickled in a different environment). Use "moin maint cleancache" to deal with this. * Generated .pyc files (that might not work in the new environment). Use your favourite combination of "find", "xargs" and "rm" to deal with this. ;-) * Permissions and policies (standard user, group and access rights plus things like SELinux). See (for SELinux): https://moinmo.in/HowTo/FedoraSELinux My "favourite" error was related to the i18n mechanism: https://moinmo.in/MoinMoinQuestions/Errors#Internal_server_error_when_changing_python_version https://moinmo.in/MoinMoinBugs/argument_of_type_%27NoneType%27_is_not_iterable This should be mostly dealt with by the above measures. Paul From paul at boddie.org.uk Thu Oct 15 11:20:15 2015 From: paul at boddie.org.uk (Paul Boddie) Date: Thu, 15 Oct 2015 17:20:15 +0200 Subject: [Moin-user] Migrating wikis from 1.9.3 to 1.9.8 In-Reply-To: <561FAD77.7050509@mail.cvs.rochester.edu> References: <561F9F3F.5010304@mail.cvs.rochester.edu> <20151015124951.GC18308@einval.com> <561FAD77.7050509@mail.cvs.rochester.edu> Message-ID: <201510151720.15754.paul@boddie.org.uk> On Thursday 15. October 2015 15.43.19 Chris Freemesser wrote: > On 10/15/15 8:49 AM, Steve McIntyre wrote: > > You'll just need to clean the cache, most likely: > > > > moint maint cleancache > > Thanks for the suggestion, but running the command results in a bunch of > log lines that concludes with: > > "MoinMoin.error.ConfigurationError: ImportError: No module named > wikiconfig" The moin command usually works best (or at all) with some extra options. Try this: moin --config-dir=WIKIDIR maint cleancache Here, WIKIDIR is the directory containing wikiconfig.py. Paul From cfreemesser at mail.cvs.rochester.edu Thu Oct 15 11:31:40 2015 From: cfreemesser at mail.cvs.rochester.edu (Chris Freemesser) Date: Thu, 15 Oct 2015 11:31:40 -0400 Subject: [Moin-user] Migrating wikis from 1.9.3 to 1.9.8 In-Reply-To: <201510151720.15754.paul@boddie.org.uk> References: <561F9F3F.5010304@mail.cvs.rochester.edu> <20151015124951.GC18308@einval.com> <561FAD77.7050509@mail.cvs.rochester.edu> <201510151720.15754.paul@boddie.org.uk> Message-ID: <561FC6DC.8000107@mail.cvs.rochester.edu> On 10/15/15 11:20 AM, Paul Boddie wrote: > The moin command usually works best (or at all) with some extra options. Try > this: > > moin --config-dir=WIKIDIR maint cleancache > > Here, WIKIDIR is the directory containing wikiconfig.py. IT WORKS! I did try adding the path to the wiki instance originally, but had the syntax wrong. Thanks VERY MUCH...I appreciate the help! Chris _____________________________________________ Chris Freemesser, Systems Administrator University of Rochester Department of Brain and Cognitive Sciences The Center for Visual Science Meliora Hall, Room 255 Phone: (585)275-0786 _____________________________________________ From lists at localguru.de Thu Oct 15 14:18:10 2015 From: lists at localguru.de (Marcus Schopen) Date: Thu, 15 Oct 2015 20:18:10 +0200 Subject: [Moin-user] Upgrade from 1.2 to 1.9.7 In-Reply-To: <561F85B6.1000901@gmail.com> References: <1444851073.3556.7.camel@cosmo> <561F85B6.1000901@gmail.com> Message-ID: <1444933090.9570.11.camel@cosmo> Hi Reimar, Am Donnerstag, den 15.10.2015, 12:53 +0200 schrieb R.Bauer: > On 14.10.2015 21:31, Marcus Schopen wrote: > > Hi, > > > > is there a way to migrate from version 1.2 to 1.9.7? > > > > Basically I don't need to keep the whole data but about 50 single pages > > without history/changes, therefore a simple copy & paste would be fine. > > But the syntax seems to be changed. Is there a script to reformat page > > syntax? > > > > Ciao! > > > Hi > > since 1.5.3 > > you can always use moin --config-dir=/usr/share/moin/mywiki > --wiki-url=http://wikiserver/mywiki migration data > > https://master19.moinmo.in/HelpOnMoinCommand#moin_..._migration_data_... > > to get to 1.5.3 > > you have to manually enter all these scripts > http://hg.moinmo.in/moin/1.9/file/01e4a21a5d1d/MoinMoin/script/old/migration > > > The syntax convertor from 1.5 to 1.6 is defined in that module. That > module is also used by the migration data process > > http://hg.moinmo.in/moin/1.9/file/01e4a21a5d1d/MoinMoin/script/migration/_conv160_wiki.py Can I upgrade from 1.2 directly to 1.5.3 and after that from 1.5.3 to 1.9.7? Ciao! From service at metamodul.com Fri Oct 16 02:11:14 2015 From: service at metamodul.com (service at metamodul.com) Date: Fri, 16 Oct 2015 08:11:14 +0200 (CEST) Subject: [Moin-user] Winpython and MoinMoin Message-ID: <759148634.143216.1444975874382.JavaMail.open-xchange@oxbaltgw38.schlund.de> Moin Moin, Given: - Windows 7 ( no admin rights ) - WinPython 2.7.10.2 - MoinMoin 1.9.x Task: i would like to have a standalone version of moinmoin using winpython. It looks like that the python binary is named "pythonw.exe" Question: Is there a recommandation for the location of moinmoin to be installed Note: The site-packages directory is name: C:\Users\USERNAME\Software\WinPython-64bit-2.7.10.2\python-2.7.10.amd64\Lib\site-packages\ Tia Hajo -------------- next part -------------- An HTML attachment was scrubbed... URL: From service at metamodul.com Fri Oct 16 03:09:47 2015 From: service at metamodul.com (service at metamodul.com) Date: Fri, 16 Oct 2015 09:09:47 +0200 (CEST) Subject: [Moin-user] Winpython and MoinMoin In-Reply-To: <759148634.143216.1444975874382.JavaMail.open-xchange@oxbaltgw38.schlund.de> References: <759148634.143216.1444975874382.JavaMail.open-xchange@oxbaltgw38.schlund.de> Message-ID: <1452797124.144945.1444979387748.JavaMail.open-xchange@oxbaltgw38.schlund.de> Please ignore my post. I missed to read the quick installation guide ... > Question: Is there a recommandation for the location of moinmoin to be > installed > ... Cheers Hajo From lists at localguru.de Sat Oct 17 09:34:53 2015 From: lists at localguru.de (Marcus Schopen) Date: Sat, 17 Oct 2015 15:34:53 +0200 Subject: [Moin-user] German localization Message-ID: <1445088893.29325.11.camel@cosmo> Hi, I've installed the german language pages (all_pages) via LanguageSetup, but get an error on RecentChanges "Aktuelle?nderungen" UnicodeEncodeError: 'ascii' codec can't encode character u'\\xfc' in position 7: ordinal not in range(128), referer ... I've found this Bug: https://moinmo.in/MoinMoinBugs/1.9% 20UmlautsForMacroNamesGivesAnInternalServerError Any solution for this? moinmoin 1.9.7 on Ubuntu 14.04 LTS Ciao! From lists at localguru.de Mon Oct 19 06:44:29 2015 From: lists at localguru.de (Marcus Schopen) Date: Mon, 19 Oct 2015 12:44:29 +0200 Subject: [Moin-user] German localization In-Reply-To: <1445088893.29325.11.camel@cosmo> References: <1445088893.29325.11.camel@cosmo> Message-ID: <1445251469.5431.0.camel@cosmo> Am Samstag, den 17.10.2015, 15:34 +0200 schrieb Marcus Schopen: > Hi, > > I've installed the german language pages (all_pages) via LanguageSetup, > but get an error on RecentChanges "Aktuelle?nderungen" > > UnicodeEncodeError: 'ascii' codec can't encode character u'\\xfc' in > position 7: ordinal not in range(128), referer ... > > I've found this Bug: > > https://moinmo.in/MoinMoinBugs/1.9% > 20UmlautsForMacroNamesGivesAnInternalServerError > > Any solution for this? > > moinmoin 1.9.7 on Ubuntu 14.04 LTS Hi, using WSGIDaemonProcess setting the 'lang' and 'locale' options will solve the problem: WSGIDaemonProcess mywiki user=www-data group=www-data processes=5 threads=10 maximum-requests=1000 umask=0007 lang='de_DE.UTF-8' locale='de_DE.UTF-8' System wide /etc/apache2/envvars ## Uncomment the following line to use the system default locale instead: . /etc/default/locale Ciao! From lists at localguru.de Fri Oct 23 02:04:18 2015 From: lists at localguru.de (Marcus Schopen) Date: Fri, 23 Oct 2015 08:04:18 +0200 Subject: [Moin-user] title search redirects to http with wsgi behind an ssl proxy Message-ID: <1445580258.4904.15.camel@cosmo> Hi, my moinmoin instanz (1.9.7-1ubuntu2) is running on apache on standard port 80 with wsgi behind a nginx ssl proxy. A problem is, that the title search of existing pages redirects to http instead of https. I think it's the same bug as described here: https://moinmo.in/MoinMoinBugs/TitleSearchFailsWsgiSSL I don't want to open port 80 on the nginx proxy and redirect requests to https. Is there a way to force any redirect of title search results to https? Ciao! From lists at localguru.de Fri Oct 23 12:26:13 2015 From: lists at localguru.de (Marcus Schopen) Date: Fri, 23 Oct 2015 18:26:13 +0200 Subject: [Moin-user] HideReferringPage Message-ID: <1445617573.14231.0.camel@cosmo> Hi, is there something like HideReferringPage for external links for moinmoin like https://www.mediawiki.org/wiki/Extension:HideReferringPage Ciao! From lists at sumpfralle.de Fri Oct 23 14:53:35 2015 From: lists at sumpfralle.de (Lars Kruse) Date: Fri, 23 Oct 2015 20:53:35 +0200 Subject: [Moin-user] title search redirects to http with wsgi behind an ssl proxy In-Reply-To: <1445580258.4904.15.camel@cosmo> References: <1445580258.4904.15.camel@cosmo> Message-ID: <20151023205335.1fecc95f@erker.lan> Hi Marcus, > Is there a way to force any redirect of title search results to https? if you are running a web server behind an ssl terminating proxy, you should probably set the environment variable "HTTPS" within the webserver. For apache this could be: SetEnv HTTPS on This variable is used by many web applications as an indicator for the original scheme used by the source of the request. cheers, Lars From lists at localguru.de Fri Oct 23 17:20:44 2015 From: lists at localguru.de (Marcus Schopen) Date: Fri, 23 Oct 2015 23:20:44 +0200 Subject: [Moin-user] title search redirects to http with wsgi behind an ssl proxy In-Reply-To: <20151023205335.1fecc95f@erker.lan> References: <1445580258.4904.15.camel@cosmo> <20151023205335.1fecc95f@erker.lan> Message-ID: <1445635244.16920.3.camel@cosmo> Hi Lars, Am Freitag, den 23.10.2015, 20:53 +0200 schrieb Lars Kruse: > Hi Marcus, > > > > Is there a way to force any redirect of title search results to https? > > if you are running a web server behind an ssl terminating proxy, you should > probably set the environment variable "HTTPS" within the webserver. > For apache this could be: > > SetEnv HTTPS on > > This variable is used by many web applications as an indicator for the > original scheme used by the source of the request. Thanks. That's working! :o I was sure I tested setenv on apache side when playing around with rpaf ... Ciao Marcus From lists at localguru.de Fri Oct 23 17:30:59 2015 From: lists at localguru.de (Marcus Schopen) Date: Fri, 23 Oct 2015 23:30:59 +0200 Subject: [Moin-user] HideReferringPage In-Reply-To: <1445617573.14231.0.camel@cosmo> References: <1445617573.14231.0.camel@cosmo> Message-ID: <1445635859.16920.4.camel@cosmo> Am Freitag, den 23.10.2015, 18:26 +0200 schrieb Marcus Schopen: > Hi, > > is there something like HideReferringPage for external links for > moinmoin like > > https://www.mediawiki.org/wiki/Extension:HideReferringPage I found this: https://moinmo.in/RedirectingExternalLinks Any other ways? Ciao! From lists at localguru.de Fri Oct 23 18:22:23 2015 From: lists at localguru.de (Marcus Schopen) Date: Sat, 24 Oct 2015 00:22:23 +0200 Subject: [Moin-user] HideReferringPage In-Reply-To: <1445635859.16920.4.camel@cosmo> References: <1445617573.14231.0.camel@cosmo> <1445635859.16920.4.camel@cosmo> Message-ID: <1445638943.16920.6.camel@cosmo> Am Freitag, den 23.10.2015, 23:30 +0200 schrieb Marcus Schopen: > Am Freitag, den 23.10.2015, 18:26 +0200 schrieb Marcus Schopen: > > Hi, > > > > is there something like HideReferringPage for external links for > > moinmoin like > > > > https://www.mediawiki.org/wiki/Extension:HideReferringPage > > I found this: https://moinmo.in/RedirectingExternalLinks > > Any other ways? > > Ciao! url_mappings = { 'https://www.wiki.de/mywiki/': 'https://www.wiki.de/mywiki/', 'http://': 'https://www.google.com/url?sa=D&q=http://', 'https://': 'https://www.google.com/url?sa=D&q=https://' } Ciao! From paul at boddie.org.uk Fri Oct 23 19:22:31 2015 From: paul at boddie.org.uk (Paul Boddie) Date: Sat, 24 Oct 2015 01:22:31 +0200 Subject: [Moin-user] HideReferringPage In-Reply-To: <1445638943.16920.6.camel@cosmo> References: <1445617573.14231.0.camel@cosmo> <1445635859.16920.4.camel@cosmo> <1445638943.16920.6.camel@cosmo> Message-ID: <201510240122.31811.paul@boddie.org.uk> On Saturday 24. October 2015 00.22.23 Marcus Schopen wrote: > Am Freitag, den 23.10.2015, 23:30 +0200 schrieb Marcus Schopen: > > Am Freitag, den 23.10.2015, 18:26 +0200 schrieb Marcus Schopen: > > > Hi, > > > > > > is there something like HideReferringPage for external links for > > > moinmoin like > > > > > > https://www.mediawiki.org/wiki/Extension:HideReferringPage > > > > I found this: https://moinmo.in/RedirectingExternalLinks > > > > Any other ways? > > > > Ciao! > > url_mappings = { > 'https://www.wiki.de/mywiki/': 'https://www.wiki.de/mywiki/', > 'http://': 'https://www.google.com/url?sa=D&q=http://', > 'https://': 'https://www.google.com/url?sa=D&q=https://' > } Well, if you don't mind following all the links via Google... I think the potentially cleaner way would be to have an action that performs such a redirect. According to the Wikipedia page about "Referer", redirects should not propagate that header, so an action that performs a similar function to that Google service (but without Google soaking up all the data) would do the job just as well. So you'd define some URL mappings pointing to the action using the above mechanism, and that would probably do what you want. Now you just have to write the action. ;-) Paul From lists at sumpfralle.de Sat Oct 24 00:52:45 2015 From: lists at sumpfralle.de (Lars Kruse) Date: Sat, 24 Oct 2015 06:52:45 +0200 Subject: [Moin-user] HideReferringPage In-Reply-To: <201510240122.31811.paul@boddie.org.uk> References: <1445617573.14231.0.camel@cosmo> <1445635859.16920.4.camel@cosmo> <1445638943.16920.6.camel@cosmo> <201510240122.31811.paul@boddie.org.uk> Message-ID: <20151024065245.0895f732@erker.lan> Hi, Am Sat, 24 Oct 2015 01:22:31 +0200 schrieb Paul Boddie : > Now you just have to write the action. ;-) I use the apache config snippet below for redirecting requests via apache's "rewrite" module. Or did you refer to a moinmoin "action"? Cheers, Lars # dummy empty directory Alias /deferrer/ /var/www/deferrer/ Require all granted RewriteEngine On RewriteRule ^https:.(.*)$ https://$1 [R,L] RewriteRule ^http:.(.*)$ http://$1 [R,L] RewriteRule ^ftp:.(.*)$ ftp://$1 [R,L] RewriteRule ^.*$ https://fallback.example.org/ [R,L] From paul at boddie.org.uk Sat Oct 24 07:07:48 2015 From: paul at boddie.org.uk (Paul Boddie) Date: Sat, 24 Oct 2015 13:07:48 +0200 Subject: [Moin-user] HideReferringPage In-Reply-To: <20151024065245.0895f732@erker.lan> References: <1445617573.14231.0.camel@cosmo> <201510240122.31811.paul@boddie.org.uk> <20151024065245.0895f732@erker.lan> Message-ID: <201510241307.49326.paul@boddie.org.uk> On Saturday 24. October 2015 06.52.45 Lars Kruse wrote: > > Am Sat, 24 Oct 2015 01:22:31 +0200 > > schrieb Paul Boddie : > > Now you just have to write the action. ;-) > > I use the apache config snippet below for redirecting requests via apache's > "rewrite" module. > Or did you refer to a moinmoin "action"? I really meant a Moin action to provide a gateway to external sites, so you would start out with a link like this: http://moinmo.in/ This would get rewritten using the url_mappings (suggested by Marcus) to... http://yoursite/moin?action=ExternalLinkAction&url=http%3A%2F%2Fmoinmo.in%2F And the action would interpret the url argument and perform the redirect. Paul From lists at localguru.de Sat Oct 24 10:47:29 2015 From: lists at localguru.de (Marcus Schopen) Date: Sat, 24 Oct 2015 16:47:29 +0200 Subject: [Moin-user] HideReferringPage In-Reply-To: <20151024065245.0895f732@erker.lan> References: <1445617573.14231.0.camel@cosmo> <1445635859.16920.4.camel@cosmo> <1445638943.16920.6.camel@cosmo> <201510240122.31811.paul@boddie.org.uk> <20151024065245.0895f732@erker.lan> Message-ID: <1445698049.27616.4.camel@cosmo> Hi Lars, Am Samstag, den 24.10.2015, 06:52 +0200 schrieb Lars Kruse: > Hi, > > > Am Sat, 24 Oct 2015 01:22:31 +0200 > schrieb Paul Boddie : > > > Now you just have to write the action. ;-) > > I use the apache config snippet below for redirecting requests via apache's > "rewrite" module. > Or did you refer to a moinmoin "action"? > > Cheers, > Lars > > > # dummy empty directory > Alias /deferrer/ /var/www/deferrer/ > > Require all granted > RewriteEngine On > RewriteRule ^https:.(.*)$ https://$1 [R,L] > RewriteRule ^http:.(.*)$ http://$1 [R,L] > RewriteRule ^ftp:.(.*)$ ftp://$1 [R,L] > RewriteRule ^.*$ https://fallback.example.org/ [R,L] > And how do you set external links in wiki pages? http://www.domain.tld/deferrer/http://www.hello.de Ciao! From lists at localguru.de Sat Oct 24 10:59:34 2015 From: lists at localguru.de (Marcus Schopen) Date: Sat, 24 Oct 2015 16:59:34 +0200 Subject: [Moin-user] HideReferringPage In-Reply-To: <1445638943.16920.6.camel@cosmo> References: <1445617573.14231.0.camel@cosmo> <1445635859.16920.4.camel@cosmo> <1445638943.16920.6.camel@cosmo> Message-ID: <1445698774.27616.9.camel@cosmo> Am Samstag, den 24.10.2015, 00:22 +0200 schrieb Marcus Schopen: > Am Freitag, den 23.10.2015, 23:30 +0200 schrieb Marcus Schopen: > > Am Freitag, den 23.10.2015, 18:26 +0200 schrieb Marcus Schopen: > > > Hi, > > > > > > is there something like HideReferringPage for external links for > > > moinmoin like > > > > > > https://www.mediawiki.org/wiki/Extension:HideReferringPage > > > > I found this: https://moinmo.in/RedirectingExternalLinks > > > > Any other ways? > > > > Ciao! > > url_mappings = { > 'https://www.wiki.de/mywiki/': 'https://www.wiki.de/mywiki/', > 'http://': 'https://www.google.com/url?sa=D&q=http://', > 'https://': 'https://www.google.com/url?sa=D&q=https://' > } url_mappings seems not to be a good idea. It hard codes the dereferrer URL into to wiki page and ends up in a recursive problem when saving or using gui mode, like https://www.google.com/url?sa=D&q=http://test.de/https://www.google.com/url?sa=D&q=http://test.de Ciao! From lists at localguru.de Sun Oct 25 05:45:18 2015 From: lists at localguru.de (Marcus Schopen) Date: Sun, 25 Oct 2015 10:45:18 +0100 Subject: [Moin-user] HideReferringPage In-Reply-To: <1445698774.27616.9.camel@cosmo> References: <1445617573.14231.0.camel@cosmo> <1445635859.16920.4.camel@cosmo> <1445638943.16920.6.camel@cosmo> <1445698774.27616.9.camel@cosmo> Message-ID: <1445766318.6307.3.camel@cosmo> Am Samstag, den 24.10.2015, 16:59 +0200 schrieb Marcus Schopen: > Am Samstag, den 24.10.2015, 00:22 +0200 schrieb Marcus Schopen: > > Am Freitag, den 23.10.2015, 23:30 +0200 schrieb Marcus Schopen: > > > Am Freitag, den 23.10.2015, 18:26 +0200 schrieb Marcus Schopen: > > > > Hi, > > > > > > > > is there something like HideReferringPage for external links for > > > > moinmoin like > > > > > > > > https://www.mediawiki.org/wiki/Extension:HideReferringPage > > > > > > I found this: https://moinmo.in/RedirectingExternalLinks > > > > > > Any other ways? > > > > > > Ciao! > > > > url_mappings = { > > 'https://www.wiki.de/mywiki/': 'https://www.wiki.de/mywiki/', > > 'http://': 'https://www.google.com/url?sa=D&q=http://', > > 'https://': 'https://www.google.com/url?sa=D&q=https://' > > } > > url_mappings seems not to be a good idea. It hard codes the dereferrer > URL into to wiki page and ends up in a recursive problem when saving or > using gui mode, like > > https://www.google.com/url?sa=D&q=http://test.de/https://www.google.com/url?sa=D&q=http://test.de Forgot to set the dereferer in url_mappings itself, so dereferer will not be applied to links to itself. Ciao! From lists at localguru.de Sun Oct 25 05:46:40 2015 From: lists at localguru.de (Marcus Schopen) Date: Sun, 25 Oct 2015 10:46:40 +0100 Subject: [Moin-user] HideReferringPage In-Reply-To: <20151024065245.0895f732@erker.lan> References: <1445617573.14231.0.camel@cosmo> <1445635859.16920.4.camel@cosmo> <1445638943.16920.6.camel@cosmo> <201510240122.31811.paul@boddie.org.uk> <20151024065245.0895f732@erker.lan> Message-ID: <1445766400.6307.4.camel@cosmo> Am Samstag, den 24.10.2015, 06:52 +0200 schrieb Lars Kruse: > Hi, > > > Am Sat, 24 Oct 2015 01:22:31 +0200 > schrieb Paul Boddie : > > > Now you just have to write the action. ;-) > > I use the apache config snippet below for redirecting requests via apache's > "rewrite" module. > Or did you refer to a moinmoin "action"? > > Cheers, > Lars > > > # dummy empty directory > Alias /deferrer/ /var/www/deferrer/ > > Require all granted > RewriteEngine On > RewriteRule ^https:.(.*)$ https://$1 [R,L] > RewriteRule ^http:.(.*)$ http://$1 [R,L] > RewriteRule ^ftp:.(.*)$ ftp://$1 [R,L] > RewriteRule ^.*$ https://fallback.example.org/ [R,L] > Hmmm ... in my setup the rewriterule doesn't hide/remove the referer. Ciao! From lists at sumpfralle.de Sun Oct 25 10:14:13 2015 From: lists at sumpfralle.de (Lars Kruse) Date: Sun, 25 Oct 2015 15:14:13 +0100 Subject: [Moin-user] HideReferringPage In-Reply-To: <1445766400.6307.4.camel@cosmo> References: <1445617573.14231.0.camel@cosmo> <1445635859.16920.4.camel@cosmo> <1445638943.16920.6.camel@cosmo> <201510240122.31811.paul@boddie.org.uk> <20151024065245.0895f732@erker.lan> <1445766400.6307.4.camel@cosmo> Message-ID: <20151025151413.2fd9bc67@erker.lan> Hi Marcus, Am Sun, 25 Oct 2015 10:46:40 +0100 schrieb Marcus Schopen : > Hmmm ... in my setup the rewriterule doesn't hide/remove the referer. Shame on me - you are right. I am not sure, how/if/when it worked before. I apologize for my bad advise regarding apache's rewrite - please ignore it. Lars From lists at localguru.de Sun Oct 25 13:10:59 2015 From: lists at localguru.de (Marcus Schopen) Date: Sun, 25 Oct 2015 18:10:59 +0100 Subject: [Moin-user] HideReferringPage In-Reply-To: <20151025151413.2fd9bc67@erker.lan> References: <1445617573.14231.0.camel@cosmo> <1445635859.16920.4.camel@cosmo> <1445638943.16920.6.camel@cosmo> <201510240122.31811.paul@boddie.org.uk> <20151024065245.0895f732@erker.lan> <1445766400.6307.4.camel@cosmo> <20151025151413.2fd9bc67@erker.lan> Message-ID: <1445793059.13691.12.camel@cosmo> Hi Lars, Am Sonntag, den 25.10.2015, 15:14 +0100 schrieb Lars Kruse: > Hi Marcus, > > > Am Sun, 25 Oct 2015 10:46:40 +0100 > schrieb Marcus Schopen : > > > > Hmmm ... in my setup the rewriterule doesn't hide/remove the referer. > > Shame on me - you are right. I am not sure, how/if/when it worked before. > I apologize for my bad advise regarding apache's rewrite - please ignore it. I did some tests: if the dereferrer rewrite rules are setup on a ssl host, the referrer will removed when forwarding to a non SSL address. An HTTP request to an HTTP request will have a referrer, so will HTTPS to HTTPS (even cross domain). HTTPS sites will not send referrers to HTTP. So apache rewrite rules do not hide in all cases. I think a script which reloads itself and then forward to the external address is necessary. Any good known? I found this one: https://github.com/papoms/php-dereferer-cloaking-script Ciao! From avazquez.dev at gmail.com Wed Oct 28 09:01:12 2015 From: avazquez.dev at gmail.com (Alex Vazquez) Date: Wed, 28 Oct 2015 14:01:12 +0100 Subject: [Moin-user] (no subject) Message-ID: hi All I'm migrating my moin wiki to a new server with the same version ( 1.5.7 ) I have two different wikis. A I can see the content perfectly . But the second I get the following error: http://pasted.co/c0a1a349 Any idea how I can fix? -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at boddie.org.uk Wed Oct 28 10:55:13 2015 From: paul at boddie.org.uk (Paul Boddie) Date: Wed, 28 Oct 2015 15:55:13 +0100 Subject: [Moin-user] (no subject) In-Reply-To: References: Message-ID: <201510281555.13420.paul@boddie.org.uk> On Wednesday 28. October 2015 14.01.12 Alex Vazquez wrote: > hi All > > I'm migrating my moin wiki to a new server with the same version ( 1.5.7 ) > I have two different wikis. A I can see the content perfectly . But > the second I get the following error: http://pasted.co/c0a1a349 > > Any idea how I can fix? Were you using Python 2.7 on the old server? Meanwhile, the error looks as if it is related to ACLs, which might explain why one wiki doesn't produce the error but the other one does. Paul From avazquez.dev at gmail.com Thu Oct 29 04:33:01 2015 From: avazquez.dev at gmail.com (Alex Vazquez) Date: Thu, 29 Oct 2015 09:33:01 +0100 Subject: [Moin-user] (no subject) In-Reply-To: <201510281555.13420.paul@boddie.org.uk> References: <201510281555.13420.paul@boddie.org.uk> Message-ID: >>Were you using Python 2.7 on the old server? On the old server the version is Python 2.4.3. I have another problem with the authentication. In the old server I have basic authentication with Apache. On the new server I have just set everything but every time I try to access the following message appears: [Errno 13] Permission denied: '/usr/share/moin/mywiki/data/user/1446106990.54.4364' If you want to report a bug, Please save this page and attach it to your bug report. ----Apache config------ AuthType Basic AuthName "Access" AuthUserFile "/var/www/passwd" Require valid-user Options FollowSymLinks AllowOverride None ----------- -----wikiconfig.py----- from MoinMoin.auth import http auth = [http] user_autocreate = True --------- Regards! 2015-10-28 15:55 GMT+01:00 Paul Boddie : > On Wednesday 28. October 2015 14.01.12 Alex Vazquez wrote: > > hi All > > > > I'm migrating my moin wiki to a new server with the same version ( 1.5.7 > ) > > I have two different wikis. A I can see the content perfectly . But > > the second I get the following error: http://pasted.co/c0a1a349 > > > > Any idea how I can fix? > > Were you using Python 2.7 on the old server? > > Meanwhile, the error looks as if it is related to ACLs, which might explain > why one wiki doesn't produce the error but the other one does. > > Paul > > > ------------------------------------------------------------------------------ > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at sumpfralle.de Thu Oct 29 08:13:38 2015 From: lists at sumpfralle.de (Lars Kruse) Date: Thu, 29 Oct 2015 13:13:38 +0100 Subject: [Moin-user] (no subject) In-Reply-To: References: <201510281555.13420.paul@boddie.org.uk> Message-ID: <20151029131338.257eddf8@erker.lan> Hi Alex, > I have another problem with the authentication. In the old server I have > basic authentication with Apache. On the new server I have just set > everything but every time I try to access the following message appears: > > [Errno 13] Permission denied: > '/usr/share/moin/mywiki/data/user/1446106990.54.4364' did you verify the permissions of these files? They should be owned by the user running your webserver (e.g. "www-data"). Additionally this user needs to be able to write to this file. Cheers, Lars From avazquez.dev at gmail.com Thu Oct 29 08:24:46 2015 From: avazquez.dev at gmail.com (Alex Vazquez) Date: Thu, 29 Oct 2015 13:24:46 +0100 Subject: [Moin-user] (no subject) In-Reply-To: <20151029131338.257eddf8@erker.lan> References: <201510281555.13420.paul@boddie.org.uk> <20151029131338.257eddf8@erker.lan> Message-ID: >did you verify the permissions of these files? You are right. I deleted the directory and i forgot re-owned the directory. 2015-10-29 13:13 GMT+01:00 Lars Kruse : > Hi Alex, > > > I have another problem with the authentication. In the old server I have > > basic authentication with Apache. On the new server I have just set > > everything but every time I try to access the following message appears: > > > > [Errno 13] Permission denied: > > '/usr/share/moin/mywiki/data/user/1446106990.54.4364' > > did you verify the permissions of these files? > They should be owned by the user running your webserver (e.g. "www-data"). > Additionally this user needs to be able to write to this file. > > Cheers, > Lars > -------------- next part -------------- An HTML attachment was scrubbed... URL: