eubnara opened a new pull request, #5259:
URL: https://github.com/apache/hadoop/pull/5259

   
   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   
   
   After [HADOOP-16314](https://issues.apache.org/jira/browse/HADOOP-16314), 
WebServlet.java was added. On WebServlet#doGet, it redirects '/' to 
'/index.html'. However, if a client connects to DataNode with https scheme, it 
fails to connect because it responds 302 with Location header which has http 
scheme.
   
   (Hostname is modified.)
   
   ```
   $ curl https://dn1.example.com:50475/ -v 2>&1 | grep Location
   < Location: http://dn1.example.com:50475/index.html
   ```
   
   I can't ensure that which solution is the best between:
   
   - Use DefaultServlet instead of WebServlet. DataNode can answer with 
index.html when accessed in '/'.
   - According to "dfs.http.policy" in hdfs-site.xml, run internal infoserver 
as https or http server each.
   
   ### How was this patch tested?
   
   
   Manually tested with internal cluster.
   
   ### For code changes:
   
   - [x] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to