[library-web/oscp] Try to fix Content-Type for Spanish pages
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web/oscp] Try to fix Content-Type for Spanish pages
- Date: Tue, 10 Mar 2020 12:16:42 +0000 (UTC)
commit 846c60802a67561f00a509c0a39b0a532dd9684f
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Tue Mar 10 13:16:18 2020 +0100
Try to fix Content-Type for Spanish pages
httpd/app_data/httpd-cfg/developer.gnome.org.conf | 4 +++-
httpd/app_data/httpd-cfg/help.gnome.org.conf | 12 +++++++-----
2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/httpd/app_data/httpd-cfg/developer.gnome.org.conf
b/httpd/app_data/httpd-cfg/developer.gnome.org.conf
index 75ac525..f51f2a3 100644
--- a/httpd/app_data/httpd-cfg/developer.gnome.org.conf
+++ b/httpd/app_data/httpd-cfg/developer.gnome.org.conf
@@ -50,10 +50,12 @@
LanguagePriority en
ForceLanguagePriority Prefer Fallback
+ AddType text/html .es
Header append Vary Cookie
+ Header set X-Content-Type-Options nosniff
- Require all granted
+ Require all granted
</Directory>
<Directory "/opt/lgo/web">
diff --git a/httpd/app_data/httpd-cfg/help.gnome.org.conf b/httpd/app_data/httpd-cfg/help.gnome.org.conf
index 403f2a1..5a5afc1 100644
--- a/httpd/app_data/httpd-cfg/help.gnome.org.conf
+++ b/httpd/app_data/httpd-cfg/help.gnome.org.conf
@@ -1,5 +1,5 @@
<VirtualHost *:8080>
- DocumentRoot /data/output/help.gnome.org
+ DocumentRoot /data/output/help.gnome.org
ServerName help.gnome.org
DirectoryIndex index.html
@@ -26,11 +26,11 @@
Options +Indexes +MultiViews
IndexOptions +FancyIndexing -IconsAreLinks +VersionSort +FoldersFirst +SuppressHTMLPreamble
- HeaderName /HEADER.html
+ HeaderName /HEADER.html
ReadmeName /FOOTER.html
IndexStyleSheet /lgo.css
- SetEnvIf Cookie "language=(.+)" prefer-language=$1 Header append Vary cookie
+ SetEnvIf Cookie "language=(.+)" prefer-language=$1 Header append Vary cookie
#SetEnvIf Cookie "language=en" prefer-language=en
#SetEnvIf Cookie "language=sr" prefer-language=sr
@@ -38,15 +38,17 @@
ForceLanguagePriority Prefer Fallback
Header append Vary Cookie
+ Header set X-Content-Type-Options nosniff
+ AddType text/html .es
- Require all granted
+ Require all granted
</Directory>
<Directory "/opt/lgo/web">
Require all granted
</Directory>
-<Directory /data/output/help.gnome.org/misc/release-notes/3.36>
+<Directory /data/output/help.gnome.org/misc/release-notes/3.36>
AuthName "Release notes (ask release-team gnome org for the password)"
AuthType Basic
AuthUserFile /data/release-notes.htaccess
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]