This is an automated email from the ASF dual-hosted git repository.

vieiro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git


The following commit(s) were added to refs/heads/master by this push:
     new f0a305d  Adding "Host" header for netbeans.org redirection.
f0a305d is described below

commit f0a305d4423d1950a3cbb70580243073f988cb11
Author: Antonio Vieiro <vie...@users.noreply.github.com>
AuthorDate: Mon Apr 8 20:34:49 2019 +0200

    Adding "Host" header for netbeans.org redirection.
---
 netbeans.apache.org/src/content/.htaccess | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/netbeans.apache.org/src/content/.htaccess 
b/netbeans.apache.org/src/content/.htaccess
index e052951..7691860 100644
--- a/netbeans.apache.org/src/content/.htaccess
+++ b/netbeans.apache.org/src/content/.htaccess
@@ -16,6 +16,5 @@ RewriteCond "%{REQUEST_FILENAME}" "!-f"
 # ... nor a directory ...
 RewriteCond "%{REQUEST_FILENAME}" "!-d"
 # ... then redirect (302) to Oracle's server
-RewriteRule (.*) "http://137.254.56.26/$1"; [L,R=302]
-# As a fallaback also redirect all 404 files
-ErrorDocument 404 http://137.254.56.26/%{REQUEST_URI}
+RequestHeader set Host netbeans.org
+RewriteRule (.*) "https://137.254.56.26/$1"; [L,R=302]


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to