comparison src/nabble/view/web/help/DNSConfiguration.jtp @ 0:7ecd1a4ef557

add content
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 21 Mar 2019 19:15:52 -0600
parents
children 36b0e32246d0
comparison
equal deleted inserted replaced
-1:000000000000 0:7ecd1a4ef557
1 <%
2 package nabble.view.web.help;
3
4 import fschmidt.util.servlet.JtpContext;
5 import nabble.view.lib.Cache;
6 import nabble.view.lib.Jtp;
7 import nabble.view.lib.Shared;
8
9 import javax.servlet.ServletException;
10 import javax.servlet.http.HttpServlet;
11 import javax.servlet.http.HttpServletRequest;
12 import javax.servlet.http.HttpServletResponse;
13 import java.io.IOException;
14 import java.io.PrintWriter;
15 import java.net.InetAddress;
16
17
18 public final class DNSConfiguration extends HttpServlet {
19
20 protected void service(HttpServletRequest request,HttpServletResponse response)
21 throws ServletException, IOException
22 {
23 JtpContext jtpContext = (JtpContext)getServletContext().getAttribute(JtpContext.attrName);
24 jtpContext.setEtag(request,response);
25 PrintWriter out = response.getWriter();
26
27 String nabbleHost = Jtp.getDefaultHost();
28 %>
29 <html>
30 <head>
31 <% Shared.head(request,response); %>
32 <title>Configure a Domain Already Registered</title>
33 <style type="text/css">
34 div.field-title {
35 margin: 0 0 .5em 0;
36 }
37 td.number {
38 width: 3em;
39 padding-bottom: .2em;
40 }
41 span.number {
42 font-size: 200%;
43 padding: 0 .3em .03em;
44 border-width:1px;
45 border-style:solid;
46 }
47 table.dns-table {
48 margin:.5em 0 1em;
49 border-width:1px;
50 border-style:solid;
51 width:80%;
52 }
53 td.dns-addr {
54 width:20%;
55 }
56 </style>
57 </head>
58 <body>
59 <% Shared.minHeaderGlobal(request,response); %>
60
61 <h1>Configure a Domain Already Registered</h1>
62
63 <p>
64 The custom domain name feature allows you to setup your Nabble application with a domain name
65 you've already registered through another registrar, such as GoDaddy.
66 </p>
67
68 <h2>Follow these steps to setup a custom domain name</h2>
69
70 <table style="margin-left:1.3em">
71 <tr valign="top">
72 <td class="number"><span class="number shaded-bg-color medium-border-color">1</span></td>
73 <td>
74 <div class="second-font field-title">Login to your Domain Registrar account</div>
75 Please go to your registrar's website (e.g., GoDaddy, Register.com, 1and1.com, etc.) and login.
76 </td>
77 </tr>
78 </table>
79
80 <table style="margin:1em 0 0 1.3em">
81 <tr valign="top">
82 <td class="number"><span class="number shaded-bg-color medium-border-color">2</span></td>
83 <td>
84 <div class="second-font field-title">Navigate to the domain's DNS Management page</div>
85 You are looking to modify the CNAME-Record of your domain, NOT the name servers -- You need to leave your name servers configured with your existing registrar.
86 </td>
87 </tr>
88 </table>
89
90 <table style="margin:1em 0 0 1.3em">
91 <tr valign="top">
92 <td class="number"><span class="number shaded-bg-color medium-border-color">3</span></td>
93 <td>
94 <div class="second-font field-title">Setup CNAME-Record</div>
95 If you are trying to setup a domain like www.mydomain.com, then you should set the CNAME-Record as follows:
96 <table class="medium-border-color dns-table">
97 <tr class="shaded-bg-color" style="font-weight:bold">
98 <td>HOST</td>
99 <td class="dns-addr">POINTS TO</td>
100 </tr>
101 <tr>
102 <td>www</td>
103 <td><%=nabbleHost%></td>
104 </tr>
105 </table>
106 If you are trying to setup just a sub-domain of your domain (e.g., myforum.mydomain.com), then you should set the CNAME-Record just for this sub-domain.
107 <table class="medium-border-color dns-table">
108 <tr class="shaded-bg-color" style="font-weight:bold">
109 <td>HOST</td>
110 <td class="dns-addr">POINTS TO</td>
111 </tr>
112 <tr>
113 <td>myforum</td>
114 <td><%=nabbleHost%></td>
115 </tr>
116 </table>
117 <% /* %>
118 If you are trying to setup a domain without host (e.g., http://mydomain.com), then you should create the A-Record for the domain root.
119 <table class="medium-border-color dns-table">
120 <tr class="shaded-bg-color" style="font-weight:bold">
121 <td>HOST</td>
122 <td class="dns-addr">POINTS TO</td>
123 </tr>
124 <tr>
125 <td>domain root (usually identified by a * or @ symbol)</td>
126 <td><%=nabbleIP%></td>
127 </tr>
128 </table>
129 <% */ %>
130 </td>
131 </tr>
132 </table>
133
134 <p>
135 <b>Note</b>: It can take up to 48 hours (although usually less) for these DNS changes propagate through the internet.
136 </p>
137
138 <% Shared.footer(request,response); %>
139 <% Shared.analytics(request,response); %>
140 </body>
141 </html>
142 <%
143 }
144
145 }
146 %>