Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xml extension in apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cheops05
n00b
n00b


Joined: 03 Jan 2005
Posts: 62

PostPosted: Thu Feb 10, 2005 4:46 pm    Post subject: xml extension in apache Reply with quote

Hi,

I noticed that this site uses sablotron to utilise xml in its documentation project, when you select a link in the documentation it points to a .xml file how do you set up apache to do the same rather than showing index.php i want it to show index.xml or *.xml not *.php

Thanks
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Thu Feb 10, 2005 8:25 pm    Post subject: Reply with quote

Why would you want to use XML in your URLs? I have written an XML framework for Windows and seriously think of porting it to Linux. But one of the prerequisites was to somehow conceal the technology, i.e. not disclose what tools I use to transform XML to HTML.

In fact it uses server-side processing scripts. I made that choice patially to prevent from revealing potential vulnerabilities in server-side compiled components. And you know MS tools do have vulerabilities ;-).

Not a question of vulnerabilities here but you could write server-side processing (scripts, modules) without telling the world you're bound to XML. For instance a URL like http://www.host.com/?Content=Document&Topic=21341, which is what I'm using for my URLs, is quite convenient if you want technology-independent URLs. It is important mostly for your visitors so that they don't have to update their favorites when you re-implement using alternate technologies.

Later you can transform these into http://www.host.com/Document/21341 with a server-side filter. Anyway the trick is to avoid showing any document extension in your URLs. This way you can use ASP, JPS, PHP, pure HTML (can be difficult at a certain extent), ASPX, or whatever, even compiled modules.

Apache does support such features.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Thu Feb 10, 2005 8:44 pm    Post subject: Reply with quote

http://axkit.org/

Quick HOWTO: http://axkit.org/wiki/view/AxKit/QuickStart

Quote:

Apache AxKit is an XML Application Server for Apache. It provides on-the-fly conversion from XML to any format, such as HTML, WAP or text using either W3C standard techniques, or flexible custom code. AxKit also uses a built-in Perl interpreter to provide some amazingly powerful techniques for XML transformation.


Code:

$ esearch -v axkit
*  dev-perl/AxKit
      Latest version available: 1.6.1
      Latest version installed: [ Not Installed ]
      Unstable version:         1.6.2
      Use Flags (stable):       -gnome
      Size of downloaded files: 293 kB
      Homepage:    http://axkit.org/
      Description: The Apache AxKit Perl Module
      License:     || ( Artistic GPL-2 )


But only for Apache 1.3.x :(
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Fri Feb 11, 2005 2:26 am    Post subject: Reply with quote

Found mod_transform for Apache 2. It is in portage tree, but unstable now, so if you want to give it a try, do

Code:

echo "net-www/mod_transform ~x86" >> /etc/portage/package.keywords
emerge -av mod_transform
Back to top
View user's profile Send private message
gentoo.org
n00b
n00b


Joined: 10 Feb 2005
Posts: 1

PostPosted: Fri Feb 11, 2005 8:51 am    Post subject: Reply with quote

A recent gwn mentioned they were getting rid of axkit. Looks like they've done it:
Code:
$ curl -I http://www.gentoo.org/
HTTP/1.1 200 OK
Date: Fri, 11 Feb 2005 08:48:15 GMT
Server: Apache/2.0.52 (Gentoo/Linux) mod_fastcgi/2.4.2
Content-Length: 17678
Last-Modified: Fri, 11 Feb 2005 08:16:32 GMT
ETag: "166e-420c69e0"
Content-Type: text/html; charset=utf-8
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Fri Feb 11, 2005 9:29 am    Post subject: Reply with quote

gentoo.org wrote:
A recent gwn mentioned they were getting rid of axkit. Looks like they've done it:


Ooops, sorry - I don´t use Apache 1.3.x so I do not watch this... Anyway, try gorg then. :D
Back to top
View user's profile Send private message
greister
n00b
n00b


Joined: 29 May 2005
Posts: 6

PostPosted: Thu Feb 16, 2006 3:08 pm    Post subject: Why does gentoo-doc introduce this? Reply with quote

Axkit is too old to installing it on my server.So I am searching the world to find one.At last I found it -- Gorg .
Now I emerge it and install it .
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum