mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 19:06:49 -04:00
Continue improving serving and display of RSS/OPDS
This commit is contained in:
parent
06787c5f57
commit
37830e173f
5 changed files with 29 additions and 13 deletions
|
@ -96,16 +96,23 @@ Define webroot /standardebooks.org/web
|
|||
Header set Content-Disposition "attachment; filename=%{FILENAME}e"
|
||||
</Location>
|
||||
|
||||
<Location ~ ^/opds.+?$>
|
||||
DirectoryIndex index.xml
|
||||
</location>
|
||||
|
||||
# We explicitly set the content-type for items in the /vocab/ directory, because Apache doesn't set it for us,
|
||||
# and we need a content-type header when using the "nosniff" header. See https://bugzilla.mozilla.org/show_bug.cgi?id=1547076
|
||||
<Location ~ ^/vocab/.+$>
|
||||
Header set Content-Type "text/plain"
|
||||
</location>
|
||||
|
||||
# text/xml allows the page to be displayed in a browser. application/atom+xml will cause it to be downloaded.
|
||||
<Location ~ ^/opds.+?$>
|
||||
DirectoryIndex index.xml
|
||||
Header set Content-Type "text/xml"
|
||||
</location>
|
||||
|
||||
# text/xml allows the page to be displayed in a browser. application/rss+xml will cause it to be downloaded.
|
||||
<Location ~ ^/rss/.*$>
|
||||
Header set Content-Type "text/xml"
|
||||
</Location>
|
||||
|
||||
# Enable HTTP CORS so that browser-based readers like Readium can access opds and ebooks
|
||||
# Allow fonts for newsletter emails
|
||||
# See https://github.com/standardebooks/tools/issues/2
|
||||
|
|
|
@ -95,16 +95,23 @@ Define webroot /standardebooks.org/web
|
|||
Header set Content-Disposition "attachment; filename=%{FILENAME}e"
|
||||
</Location>
|
||||
|
||||
<Location ~ ^/opds.+?$>
|
||||
DirectoryIndex index.xml
|
||||
</location>
|
||||
|
||||
# We explicitly set the content-type for items in the /vocab/ directory, because Apache doesn't set it for us,
|
||||
# and we need a content-type header when using the "nosniff" header. See https://bugzilla.mozilla.org/show_bug.cgi?id=1547076
|
||||
<Location ~ ^/vocab/.+$>
|
||||
Header set Content-Type "text/plain"
|
||||
</location>
|
||||
|
||||
# text/xml allows the page to be displayed in a browser. application/atom+xml will cause it to be downloaded.
|
||||
<Location ~ ^/opds.+?$>
|
||||
DirectoryIndex index.xml
|
||||
Header set Content-Type "text/xml"
|
||||
</location>
|
||||
|
||||
# text/xml allows the page to be displayed in a browser. application/rss+xml will cause it to be downloaded.
|
||||
<Location ~ ^/rss/.*$>
|
||||
Header set Content-Type "text/xml"
|
||||
</Location>
|
||||
|
||||
# Enable HTTP CORS so that browser-based readers like Readium can access opds and ebooks
|
||||
# Allow fonts for newsletter emails
|
||||
# See https://github.com/standardebooks/tools/issues/2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue