mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 12:54:48 -04:00
Serve OPDS as application/xml
This commit is contained in:
parent
dcb20692aa
commit
1266c5859b
2 changed files with 6 additions and 6 deletions
|
@ -102,15 +102,15 @@ Define webroot /standardebooks.org/web
|
||||||
Header set Content-Type "text/plain"
|
Header set Content-Type "text/plain"
|
||||||
</location>
|
</location>
|
||||||
|
|
||||||
# text/xml allows the page to be displayed in a browser. application/atom+xml will cause it to be downloaded.
|
# application/xml allows the page to be displayed in a browser. application/atom+xml will cause it to be downloaded.
|
||||||
<Location ~ ^/opds.+?$>
|
<Location ~ ^/opds.+?$>
|
||||||
DirectoryIndex index.xml
|
DirectoryIndex index.xml
|
||||||
Header set Content-Type "text/xml"
|
Header set Content-Type "application/xml"
|
||||||
</location>
|
</location>
|
||||||
|
|
||||||
# application/xml allows the page to be displayed in a browser and the encoding to be
|
# application/xml allows the page to be displayed in a browser and the encoding to be
|
||||||
# determined from the document and not the HTTP headers. application/rss+xml will cause it to be downloaded.
|
# determined from the document and not the HTTP headers. application/rss+xml will cause it to be downloaded.
|
||||||
<Location ~ ^/rss/.*$>
|
<Location ~ ^/(rss|atom)/.*$>
|
||||||
Header set Content-Type "application/xml"
|
Header set Content-Type "application/xml"
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
|
|
|
@ -101,15 +101,15 @@ Define webroot /standardebooks.org/web
|
||||||
Header set Content-Type "text/plain"
|
Header set Content-Type "text/plain"
|
||||||
</location>
|
</location>
|
||||||
|
|
||||||
# text/xml allows the page to be displayed in a browser. application/atom+xml will cause it to be downloaded.
|
# application/xml allows the page to be displayed in a browser. application/atom+xml will cause it to be downloaded.
|
||||||
<Location ~ ^/opds.+?$>
|
<Location ~ ^/opds.+?$>
|
||||||
DirectoryIndex index.xml
|
DirectoryIndex index.xml
|
||||||
Header set Content-Type "text/xml"
|
Header set Content-Type "application/xml"
|
||||||
</location>
|
</location>
|
||||||
|
|
||||||
# application/xml allows the page to be displayed in a browser and the encoding to be
|
# application/xml allows the page to be displayed in a browser and the encoding to be
|
||||||
# determined from the document and not the HTTP headers. application/rss+xml will cause it to be downloaded.
|
# determined from the document and not the HTTP headers. application/rss+xml will cause it to be downloaded.
|
||||||
<Location ~ ^/rss/.*$>
|
<Location ~ ^/(rss|atom)/.*$>
|
||||||
Header set Content-Type "application/xml"
|
Header set Content-Type "application/xml"
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue