Add RSS to IIS5

Add RSS to IIS5

am 13.07.2005 04:10:58 von Bill Jasiulewicz

I have a Windows 2000 Server running IIS5 and the current website runs fine.

I want to add an RSS feed and I have formatted an RSS XML file per
instructions located elsewhere on the Internet.

I don't know what to name the file in IIS, but I have tried feed.rss and
rss.xml. What name do I use?

I assume that I am also supposed to add something else to IIS, but I don't
know what to add.

I've found plenty of information for Apache, but nothing for IIS.

Re: Add RSS to IIS5

am 13.07.2005 07:57:57 von someone

You need the software to generate an RSS file for whatever you want to
stream. IIS is only involved in serving up the RSS file.

For example, software like Community Server (for blogs) run on IIS and
generate RSS feeds of the blogs. IIS does absolutely nothing other than host
Community Server, which has code to generate the various RSS feeds. IIS only
serves up the RSS file when someone requests it.

I think most of the RSS feed generators would also run on IIS, if the
original software writers wrote it cross-platform (I saw some for
PHP/MySQL -- which also run on IIS and Windows -- and nothing about RSS is
platform specific).

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Bill J" wrote in message
news:SK_Ae.152650$VH2.29622@tornado.tampabay.rr.com...
I have a Windows 2000 Server running IIS5 and the current website runs fine.

I want to add an RSS feed and I have formatted an RSS XML file per
instructions located elsewhere on the Internet.

I don't know what to name the file in IIS, but I have tried feed.rss and
rss.xml. What name do I use?

I assume that I am also supposed to add something else to IIS, but I don't
know what to add.

I've found plenty of information for Apache, but nothing for IIS.

Re: Add RSS to IIS5

am 13.07.2005 15:31:56 von Bill Jasiulewicz

From what I've read, feed generators only apply for the creation of the RSS
feed file because most RSS feeds are dynamic, but the format of the file is
clearly defined in all the Internet websites and there are even ASP examples
and C# examples of how to create the RSS feed file dynamically. However,
there seems to be nothing to prohibit someone from manually creating a
static RSS feed file in order to get the RSS feed created and tested with
then adding the feed generator as the second step.

What I need is to know the name of the RSS feed file? feed.rss? Location of
the RSS feed file? Root?

When I use a feed validator like http://feedvalidator.org, it tells me:
This feed does not validate.

a.. Feeds should not be served with the "text/html; charset=utf-8" media
type

Searching tells me that it is because IIS does not know what a RSS file is
and I need to add something to IIS - the same website clearly defines some
changes to the .htaccess file in Apache, but I'm not familiar enough with
Apache or IIS to be able to translate those changes for IIS.

Example:

http://www.elixirsystems.com/seo_tips/rss_feeds_publishing.p hp
If the validator comes back with the error 'Feeds should not be served with
the "text/plain" media type' you will need to define the .rss file extension
as a RSS file. If you're running Apache the easiest way to do this is to
create a .htaccess file in your website's root directory and add the
following lines:

addtype application/rdf+xml rdf
addtype application/rss+xml rss
addtype application/atom+xml atom
addtype application/xml xml

"David Wang [Msft]" wrote ...
> You need the software to generate an RSS file for whatever you want to
> stream. IIS is only involved in serving up the RSS file.
>
> For example, software like Community Server (for blogs) run on IIS and
> generate RSS feeds of the blogs. IIS does absolutely nothing other than
> host
> Community Server, which has code to generate the various RSS feeds. IIS
> only
> serves up the RSS file when someone requests it.
>
> I think most of the RSS feed generators would also run on IIS, if the
> original software writers wrote it cross-platform (I saw some for
> PHP/MySQL -- which also run on IIS and Windows -- and nothing about RSS is
> platform specific).
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> //
> "Bill J" wrote in message
> news:SK_Ae.152650$VH2.29622@tornado.tampabay.rr.com...
> I have a Windows 2000 Server running IIS5 and the current website runs
> fine.
>
> I want to add an RSS feed and I have formatted an RSS XML file per
> instructions located elsewhere on the Internet.
>
> I don't know what to name the file in IIS, but I have tried feed.rss and
> rss.xml. What name do I use?
>
> I assume that I am also supposed to add something else to IIS, but I don't
> know what to add.
>
> I've found plenty of information for Apache, but nothing for IIS.

Re: Add RSS to IIS5

am 13.07.2005 17:32:47 von tomk (A

"Bill J" wrote in message
news:SK_Ae.152650$VH2.29622@tornado.tampabay.rr.com...
>I have a Windows 2000 Server running IIS5 and the current website runs
>fine.
>
> I want to add an RSS feed and I have formatted an RSS XML file per
> instructions located elsewhere on the Internet.
>
> I don't know what to name the file in IIS, but I have tried feed.rss and
> rss.xml. What name do I use?
>
> I assume that I am also supposed to add something else to IIS, but I don't
> know what to add.

In addition to what David said, it doesn't mater what you name the file,
that's arbitrary. You just place the file in a content area so IIS can
serve it.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserver2003/community/centers /iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS

Re: Add RSS to IIS5

am 13.07.2005 17:57:09 von Steven Burn

"Bill J" wrote in message
news:gJ8Be.153814$VH2.44739@tornado.tampabay.rr.com...
> What I need is to know the name of the RSS feed file? feed.rss?

It makes no difference whether it's feed.rss or mymothersbestmate.rss,
aslong as it ends in .rss or .xml (the latter being the most common).

> Location of the RSS feed file? Root?

Wherever you like

>
> When I use a feed validator like http://feedvalidator.org, it tells me:
> This feed does not validate.
>
> a.. Feeds should not be served with the "text/html; charset=utf-8" media
> type

You need to set the MIME type for .rss files to that of the MIME type for
..xml files

Then your RSS file starts with;



or



Depending on your version.

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

>
> Searching tells me that it is because IIS does not know what a RSS file is
> and I need to add something to IIS - the same website clearly defines some
> changes to the .htaccess file in Apache, but I'm not familiar enough with
> Apache or IIS to be able to translate those changes for IIS.
>
> Example:
>
> http://www.elixirsystems.com/seo_tips/rss_feeds_publishing.p hp
> If the validator comes back with the error 'Feeds should not be served
with
> the "text/plain" media type' you will need to define the .rss file
extension
> as a RSS file. If you're running Apache the easiest way to do this is to
> create a .htaccess file in your website's root directory and add the
> following lines:
>
> addtype application/rdf+xml rdf
> addtype application/rss+xml rss
> addtype application/atom+xml atom
> addtype application/xml xml
>
> "David Wang [Msft]" wrote ...
> > You need the software to generate an RSS file for whatever you want to
> > stream. IIS is only involved in serving up the RSS file.
> >
> > For example, software like Community Server (for blogs) run on IIS and
> > generate RSS feeds of the blogs. IIS does absolutely nothing other than
> > host
> > Community Server, which has code to generate the various RSS feeds. IIS
> > only
> > serves up the RSS file when someone requests it.
> >
> > I think most of the RSS feed generators would also run on IIS, if the
> > original software writers wrote it cross-platform (I saw some for
> > PHP/MySQL -- which also run on IIS and Windows -- and nothing about RSS
is
> > platform specific).
> >
> > --
> > //David
> > IIS
> > http://blogs.msdn.com/David.Wang
> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > //
> > "Bill J" wrote in message
> > news:SK_Ae.152650$VH2.29622@tornado.tampabay.rr.com...
> > I have a Windows 2000 Server running IIS5 and the current website runs
> > fine.
> >
> > I want to add an RSS feed and I have formatted an RSS XML file per
> > instructions located elsewhere on the Internet.
> >
> > I don't know what to name the file in IIS, but I have tried feed.rss and
> > rss.xml. What name do I use?
> >
> > I assume that I am also supposed to add something else to IIS, but I
don't
> > know what to add.
> >
> > I've found plenty of information for Apache, but nothing for IIS.
>
>

Re: Add RSS to IIS5

am 13.07.2005 20:57:07 von Bill Jasiulewicz

My static RSS feed file finally passes validation at
http://feedvalidator.org and for others looking for the solution here is
what I did:

I added the following into the registry on the IIS machine to recognize .RSS
files as XML documents:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.rss]
@="xmlfile"
"Content Type"="text/xml"

[HKEY_CLASSES_ROOT\.rss\OpenWithList]

[HKEY_CLASSES_ROOT\.rss\OpenWithList\devenv.exe]
@=""

[HKEY_CLASSES_ROOT\.rss\ShellEx]

[HKEY_CLASSES_ROOT\.rss\ShellEx\{BB2E617C-0920-11d1-9A0B-00C 04FC2D6C1}]
@="{EAB841A0-9550-11cf-8C16-00805F1408F3}"

(Save the above text as a .REG file and then double-click it on the server.)

Then I opened the IIS console, selected the website Properties and then
"HTTP Headers" tab. After clicking on "File Types" under "MIME Map" I added
the new type .RSS as application/rss+xml.

Of course the next step is using something to generate the .RSS file
dynamically, but there are many examples on the web to handle that.

Thanks for all your help!

"Steven Burn" wrote

> "Bill J" wrote ...
>> What I need is to know the name of the RSS feed file? feed.rss?
>
> It makes no difference whether it's feed.rss or mymothersbestmate.rss,
> aslong as it ends in .rss or .xml (the latter being the most common).
>
>> Location of the RSS feed file? Root?
>
> Wherever you like
>
>> When I use a feed validator like http://feedvalidator.org, it tells me:
>> This feed does not validate.
>>
>> a.. Feeds should not be served with the "text/html; charset=utf-8"
>> media
>> type
>
> You need to set the MIME type for .rss files to that of the MIME type for
> .xml files
>
> Then your RSS file starts with;
>
>
>
> or
>
>
>
> Depending on your version.
>
>> Searching tells me that it is because IIS does not know what a RSS file
>> is
>> and I need to add something to IIS - the same website clearly defines
>> some
>> changes to the .htaccess file in Apache, but I'm not familiar enough with
>> Apache or IIS to be able to translate those changes for IIS.
>>
>> Example:
>>
>> http://www.elixirsystems.com/seo_tips/rss_feeds_publishing.p hp
>> If the validator comes back with the error 'Feeds should not be served
>> with the "text/plain" media type' you will need to define the .rss file
>> extension as a RSS file. If you're running Apache the easiest way to do
>> this
>> is to create a .htaccess file in your website's root directory and add
>> the
>> following lines:
>>
>> addtype application/rdf+xml rdf
>> addtype application/rss+xml rss
>> addtype application/atom+xml atom
>> addtype application/xml xml
>>
>> "David Wang [Msft]" wrote ...
>> > You need the software to generate an RSS file for whatever you want to
>> > stream. IIS is only involved in serving up the RSS file.
>> >
>> > For example, software like Community Server (for blogs) run on IIS and
>> > generate RSS feeds of the blogs. IIS does absolutely nothing other than
>> > host
>> > Community Server, which has code to generate the various RSS feeds. IIS
>> > only
>> > serves up the RSS file when someone requests it.
>> >
>> > I think most of the RSS feed generators would also run on IIS, if the
>> > original software writers wrote it cross-platform (I saw some for
>> > PHP/MySQL -- which also run on IIS and Windows -- and nothing about RSS
>> > is platform specific).
>> >
>> > "Bill J" wrote in message
>> > news:SK_Ae.152650$VH2.29622@tornado.tampabay.rr.com...
>> > I have a Windows 2000 Server running IIS5 and the current website runs
>> > fine.
>> >
>> > I want to add an RSS feed and I have formatted an RSS XML file per
>> > instructions located elsewhere on the Internet.
>> >
>> > I don't know what to name the file in IIS, but I have tried feed.rss
>> > and
>> > rss.xml. What name do I use?
>> >
>> > I assume that I am also supposed to add something else to IIS, but I
>> > don't know what to add.
>> >
>> > I've found plenty of information for Apache, but nothing for IIS.

Re: Add RSS to IIS5

am 14.07.2005 07:48:20 von someone

Only the second part (setting up MIME Map) is necessary for IIS to serve up
the .rss file as static content.

The Registry part makes Explorer recognize .rss files.

Now, there is backwards compat where IIS will import the Windows MIME Type
list so that you just need to add .rss once, in Explorer, and it works for
both IIS and Windows (no need for the IIS MIME Map setting). However, this
is not as portable since you need to remember to change some Registry key in
addition to copying metabase properties.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Bill J" wrote in message
news:7udBe.230585$w15.17867@tornado.tampabay.rr.com...
My static RSS feed file finally passes validation at
http://feedvalidator.org and for others looking for the solution here is
what I did:

I added the following into the registry on the IIS machine to recognize .RSS
files as XML documents:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.rss]
@="xmlfile"
"Content Type"="text/xml"

[HKEY_CLASSES_ROOT\.rss\OpenWithList]

[HKEY_CLASSES_ROOT\.rss\OpenWithList\devenv.exe]
@=""

[HKEY_CLASSES_ROOT\.rss\ShellEx]

[HKEY_CLASSES_ROOT\.rss\ShellEx\{BB2E617C-0920-11d1-9A0B-00C 04FC2D6C1}]
@="{EAB841A0-9550-11cf-8C16-00805F1408F3}"

(Save the above text as a .REG file and then double-click it on the server.)

Then I opened the IIS console, selected the website Properties and then
"HTTP Headers" tab. After clicking on "File Types" under "MIME Map" I added
the new type .RSS as application/rss+xml.

Of course the next step is using something to generate the .RSS file
dynamically, but there are many examples on the web to handle that.

Thanks for all your help!

"Steven Burn" wrote

> "Bill J" wrote ...
>> What I need is to know the name of the RSS feed file? feed.rss?
>
> It makes no difference whether it's feed.rss or mymothersbestmate.rss,
> aslong as it ends in .rss or .xml (the latter being the most common).
>
>> Location of the RSS feed file? Root?
>
> Wherever you like
>
>> When I use a feed validator like http://feedvalidator.org, it tells me:
>> This feed does not validate.
>>
>> a.. Feeds should not be served with the "text/html; charset=utf-8"
>> media
>> type
>
> You need to set the MIME type for .rss files to that of the MIME type for
> .xml files
>
> Then your RSS file starts with;
>
>
>
> or
>
>
>
> Depending on your version.
>
>> Searching tells me that it is because IIS does not know what a RSS file
>> is
>> and I need to add something to IIS - the same website clearly defines
>> some
>> changes to the .htaccess file in Apache, but I'm not familiar enough with
>> Apache or IIS to be able to translate those changes for IIS.
>>
>> Example:
>>
>> http://www.elixirsystems.com/seo_tips/rss_feeds_publishing.p hp
>> If the validator comes back with the error 'Feeds should not be served
>> with the "text/plain" media type' you will need to define the .rss file
>> extension as a RSS file. If you're running Apache the easiest way to do
>> this
>> is to create a .htaccess file in your website's root directory and add
>> the
>> following lines:
>>
>> addtype application/rdf+xml rdf
>> addtype application/rss+xml rss
>> addtype application/atom+xml atom
>> addtype application/xml xml
>>
>> "David Wang [Msft]" wrote ...
>> > You need the software to generate an RSS file for whatever you want to
>> > stream. IIS is only involved in serving up the RSS file.
>> >
>> > For example, software like Community Server (for blogs) run on IIS and
>> > generate RSS feeds of the blogs. IIS does absolutely nothing other than
>> > host
>> > Community Server, which has code to generate the various RSS feeds. IIS
>> > only
>> > serves up the RSS file when someone requests it.
>> >
>> > I think most of the RSS feed generators would also run on IIS, if the
>> > original software writers wrote it cross-platform (I saw some for
>> > PHP/MySQL -- which also run on IIS and Windows -- and nothing about RSS
>> > is platform specific).
>> >
>> > "Bill J" wrote in message
>> > news:SK_Ae.152650$VH2.29622@tornado.tampabay.rr.com...
>> > I have a Windows 2000 Server running IIS5 and the current website runs
>> > fine.
>> >
>> > I want to add an RSS feed and I have formatted an RSS XML file per
>> > instructions located elsewhere on the Internet.
>> >
>> > I don't know what to name the file in IIS, but I have tried feed.rss
>> > and
>> > rss.xml. What name do I use?
>> >
>> > I assume that I am also supposed to add something else to IIS, but I
>> > don't know what to add.
>> >
>> > I've found plenty of information for Apache, but nothing for IIS.