[MAGNOLIA-298] Name Based Virtual Host Created: 20/Feb/05 Updated: 23/Aug/05 Resolved: 23/Aug/05 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | 2.01 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major |
| Reporter: | Hans Joachim Herbertz | Assignee: | Sameer Charles |
| Resolution: | Won't Fix | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows, Linux, Tomcat 5.0.25, eclipse 3 |
||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Date of First Response: |
| Description |
|
Magnolia does not support virtual hosts of http/1.1 for content activation. The public instance always uses the ip address but not the hostname and does not send a host header. Therefor the servlet engine cant dispatch to virtual hosts. I think the SimpleExchange#doGet(..) 116 this.host = request.getRemoteHost(); will alway return the ip - address and never use the host-header. I fixed that by: if (request.getHeader("host")!=null) { this.host=request.getHeader("host"); }Now I found out that the author instance either does not send a host header. I made a little hack for this problem at the Syndicator#activate(Subscriber) adding the request header : 177 URL url = new URL(handle); > urlConnection.addRequestProperty("host",request.getHeader("Host")); This solved the problem for me, but i think there might be a better solution. It would be nice if you could take this problem into consideration with your next release, for virtual hosts is an important feature to me and maybe to others too. Thank you, best regards Achim |
| Comments |
| Comment by Sameer Charles [ 23/Aug/05 ] |
|
Hans |