Merge ~bryce/ubuntu/+source/apache2:fix-lp1966004-jammy into ubuntu/+source/apache2:ubuntu/devel

Proposed by Bryce Harrington
Status: Merged
Merge reported by: Bryce Harrington
Merged at revision: 3322a0b47b2529296e0411490c36cba16fb289a4
Proposed branch: ~bryce/ubuntu/+source/apache2:fix-lp1966004-jammy
Merge into: ubuntu/+source/apache2:ubuntu/devel
Diff against target: 207 lines (+49/-48)
2 files modified
debian/changelog (+13/-0)
debian/index.html (+36/-48)
Reviewer Review Type Date Requested Status
Andreas Hasenack Approve
Christian Ehrhardt  (community) Approve
Lena Voytek Pending
Canonical Server Pending
Review via email: mp+417604@code.launchpad.net

Description of the change

Updates the branding for the default index.html created from a new Apache2 installation. This page can also show up when the server is misconfigured.

The PNG file provided to us by the branding effort is of differing dimensions and visual layout than the previous logo. I tried resizing it to match the old one (reduced to 1/8th size). Here's a before/after comparison: http://www.bryceharrington.org/experimental/new_apache.png

As you can see, I also replaced the Debian-branded coloring of the 'It works!' heading with Ubuntu orange, and added some margin under the logo image to better balance things. Unfortunately, scaling by 1/8th is a bit too much, as the 'Ubuntu' text in the PNG thins out too much.

I ended up going with a 1/4th scaling of the logo, and did a bit of CSS redesign on the header:

    http://www.bryceharrington.org/experimental/new_apache_mark_2.png

You'll note there that I also changed the default font for the page to 'Ubuntu' (which makes the text more consistent with the logo), and simplified the title to 'Apache2 Default Page', dropping the redundant 'Ubuntu'.

While I was at it, I did a bit of light copyediting and reformatting on the body text to fix some bad grammar, remove a commented-out TOC, and cleanup whitespace in the HTML code.

Of a more technical note, the directions for starting/stopping apache were out of date, so I replaced them with more current directions with systemd. (This change isn't visible in the above screenshot; reviewers should look at the index.html diff in this MP.)

To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I just saw that this isn't even an upstream page that Debian modified, instead it is "just" a file in debian/ . That is great as I expect less churn on that and furthermore zero churn when we e.g. backport changes for SRUs or such.
I'm happy with the maintenance effort that should come out of this as Debian rarely updates this.

The new visuals LGTM, lets us see what others say.

The typos, whitespace and comment removal could be submitted to Debian once we agree on our way for Jammy.

+1 from my POV

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

One content comment though, do we really need to drop " or <tt>apache2ctl</tt>".
It is systemd compatible (thanks to your very own work) and has some advanced features.
@bryce - Could we keep that snippet?

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I'll take a look too, right after lunch, sorry for missing the request.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

> One content comment though, do we really need to drop " or
> <tt>apache2ctl</tt>".
> It is systemd compatible (thanks to your very own work) and has some advanced
> features.
> @bryce - Could we keep that snippet?

FWIW, the server guide[1] is using systemctl in all places. Personally, I would prefer systemctl, then service, and lastly apache2ctl.

1. https://ubuntu.com/server/docs/web-servers-apache

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Typo inline.

+1 otherwise

review: Approve
e83ba76... by Bryce Harrington

review: Fix SystemD typo

3322a0b... by Bryce Harrington

review: Use systemctl preferentially, to match official docs.
Mention system and apache2ctl as secondary alternatives.

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, I've pushed up a branch including the review changes. Hopefully the way I've added mentions of the different service management options matches what you two have in mind.

-rw-r--r-- 1 bryce bryce 1822 Mar 25 00:20 ../apache2_2.4.52-1ubuntu3_source.changes
../apache2_2.4.52-1ubuntu3_source.changes
Vcs-Git: https://git.launchpad.net/~bryce/ubuntu/+source/apache2
Vcs-Git-Commit: 33f18d3c3fe6c3593592a4c557dea9b921365e30
Vcs-Git-Ref: refs/heads/fix-lp1966004-jammy-release

$ dput ubuntu ../apache2_2.4.52-1ubuntu3_source.changes
D: Setting host argument.
Checking signature on .changes
gpg: ../apache2_2.4.52-1ubuntu3_source.changes: Valid signature from E603B2578FB8F0FB
Checking signature on .dsc
gpg: ../apache2_2.4.52-1ubuntu3.dsc: Valid signature from E603B2578FB8F0FB
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading apache2_2.4.52-1ubuntu3.dsc: done.
  Uploading apache2_2.4.52-1ubuntu3.debian.tar.xz: done.
  Uploading apache2_2.4.52-1ubuntu3_source.buildinfo: done.
  Uploading apache2_2.4.52-1ubuntu3_source.changes: done.
Successfully uploaded packages.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The package migrated already, please close this MP when you get a chance.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 6360e80..832d28f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,16 @@
1apache2 (2.4.52-1ubuntu3) jammy; urgency=medium
2
3 * d/index.html:
4 - Redesign page's heading for the new logo
5 - Use the Ubuntu font where available
6 - Update service management directions
7 - Copyedit grammar
8 - Light reformatting and whitespace cleanup
9 * d/icons/ubuntu-logo.png: Refresh ubuntu logo
10 (LP: #1966004)
11
12 -- Bryce Harrington <bryce@canonical.com> Wed, 23 Mar 2022 16:18:11 -0700
13
1apache2 (2.4.52-1ubuntu2) jammy; urgency=medium14apache2 (2.4.52-1ubuntu2) jammy; urgency=medium
215
3 * SECURITY UPDATE: OOB read in mod_lua via crafted request body16 * SECURITY UPDATE: OOB read in mod_lua via crafted request body
diff --git a/debian/icons/ubuntu-logo.png b/debian/icons/ubuntu-logo.png
index 4db2fa1..eee686c 100644
4Binary files a/debian/icons/ubuntu-logo.png and b/debian/icons/ubuntu-logo.png differ17Binary files a/debian/icons/ubuntu-logo.png and b/debian/icons/ubuntu-logo.png differ
diff --git a/debian/index.html b/debian/index.html
index 96ed444..9c90ef4 100644
--- a/debian/index.html
+++ b/debian/index.html
@@ -1,10 +1,9 @@
1
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">2<html xmlns="http://www.w3.org/1999/xhtml">
4 <!--3 <!--
5 Modified from the Debian original for Ubuntu4 Modified from the Debian original for Ubuntu
6 Last updated: 2016-11-165 Last updated: 2022-03-22
7 See: https://launchpad.net/bugs/12886906 See: https://launchpad.net/bugs/1966004
8 -->7 -->
9 <head>8 <head>
10 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />9 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@@ -20,7 +19,7 @@
2019
21 background-color: #D8DBE2;20 background-color: #D8DBE2;
2221
23 font-family: Verdana, sans-serif;22 font-family: Ubuntu, Verdana, sans-serif;
24 font-size: 11pt;23 font-size: 11pt;
25 text-align: center;24 text-align: center;
26 }25 }
@@ -46,7 +45,7 @@
46 }45 }
4746
48 div.page_header {47 div.page_header {
49 height: 99px;48 height: 180px;
50 width: 100%;49 width: 100%;
5150
52 background-color: #F5F6F7;51 background-color: #F5F6F7;
@@ -65,6 +64,19 @@
65 border: 0px 0px 0px;64 border: 0px 0px 0px;
66 }65 }
6766
67 div.banner {
68 padding: 9px 6px 9px 6px;
69 background-color: #E9510E;
70 color: #FFFFFF;
71 font-weight: bold;
72 font-size: 112%;
73 text-align: center;
74 position: absolute;
75 left: 40%;
76 bottom: 30px;
77 width: 20%;
78 }
79
68 div.table_of_contents {80 div.table_of_contents {
69 clear: left;81 clear: left;
7082
@@ -141,10 +153,6 @@
141 text-align: center;153 text-align: center;
142 }154 }
143155
144 div.section_header_red {
145 background-color: #CD214F;
146 }
147
148 div.section_header_grey {156 div.section_header_grey {
149 background-color: #9F9386;157 background-color: #9F9386;
150 }158 }
@@ -193,36 +201,20 @@
193 <body>201 <body>
194 <div class="main_page">202 <div class="main_page">
195 <div class="page_header floating_element">203 <div class="page_header floating_element">
196 <img src="/icons/ubuntu-logo.png" alt="Ubuntu Logo" class="floating_element"/>204 <img src="icons/ubuntu-logo.png" alt="Ubuntu Logo"
197 <span class="floating_element">205 style="width:184px;height:146px;" class="floating_element" />
198 Apache2 Ubuntu Default Page206 <div>
199 </span>207 <span style="margin-top: 1.5em;" class="floating_element">
200 </div>208 Apache2 Default Page
201<!-- <div class="table_of_contents floating_element">209 </span>
202 <div class="section_header section_header_grey">
203 TABLE OF CONTENTS
204 </div>
205 <div class="table_of_contents_item floating_element">
206 <a href="#about">About</a>
207 </div>
208 <div class="table_of_contents_item floating_element">
209 <a href="#changes">Changes</a>
210 </div>
211 <div class="table_of_contents_item floating_element">
212 <a href="#scope">Scope</a>
213 </div>
214 <div class="table_of_contents_item floating_element">
215 <a href="#files">Config files</a>
216 </div>210 </div>
217 </div>211 <div class="banner">
218-->
219 <div class="content_section floating_element">
220
221
222 <div class="section_header section_header_red">
223 <div id="about"></div>212 <div id="about"></div>
224 It works!213 It works!
225 </div>214 </div>
215
216 </div>
217 <div class="content_section floating_element">
226 <div class="content_section_text">218 <div class="content_section_text">
227 <p>219 <p>
228 This is the default welcome page used to test the correct 220 This is the default welcome page used to test the correct
@@ -234,7 +226,6 @@
234 <tt>/var/www/html/index.html</tt>) before continuing to operate your HTTP server.226 <tt>/var/www/html/index.html</tt>) before continuing to operate your HTTP server.
235 </p>227 </p>
236228
237
238 <p>229 <p>
239 If you are a normal user of this web site and don't know what this page is230 If you are a normal user of this web site and don't know what this page is
240 about, this probably means that the site is currently unavailable due to231 about, this probably means that the site is currently unavailable due to
@@ -257,7 +248,6 @@
257 documentation. Documentation for the web server itself can be248 documentation. Documentation for the web server itself can be
258 found by accessing the <a href="/manual">manual</a> if the <tt>apache2-doc</tt>249 found by accessing the <a href="/manual">manual</a> if the <tt>apache2-doc</tt>
259 package was installed on this server.250 package was installed on this server.
260
261 </p>251 </p>
262 <p>252 <p>
263 The configuration layout for an Apache2 web server installation on Ubuntu systems is as follows:253 The configuration layout for an Apache2 web server installation on Ubuntu systems is as follows:
@@ -315,9 +305,12 @@
315 </li>305 </li>
316306
317 <li>307 <li>
318 The binary is called apache2. Due to the use of308 The binary is called apache2 and is managed using systemd, so to
319 environment variables, in the default configuration, apache2 needs to be309 start/stop the service use <tt>systemctl start apache2</tt> and
320 started/stopped with <tt>/etc/init.d/apache2</tt> or <tt>apache2ctl</tt>.310 <tt>systemctl stop apache2</tt>, and use <tt>systemctl status apache2</tt>
311 and <tt>journalctl -u apache2</tt> to check status. <tt>system</tt>
312 and <tt>apache2ctl</tt> can also be used for service management if
313 desired.
321 <b>Calling <tt>/usr/bin/apache2</tt> directly will not work</b> with the314 <b>Calling <tt>/usr/bin/apache2</tt> directly will not work</b> with the
322 default configuration.315 default configuration.
323 </li>316 </li>
@@ -332,7 +325,7 @@
332 <div class="content_section_text">325 <div class="content_section_text">
333 <p>326 <p>
334 By default, Ubuntu does not allow access through the web browser to327 By default, Ubuntu does not allow access through the web browser to
335 <em>any</em> file apart of those located in <tt>/var/www</tt>,328 <em>any</em> file outside of those located in <tt>/var/www</tt>,
336 <a href="http://httpd.apache.org/docs/2.4/mod/mod_userdir.html" rel="nofollow">public_html</a>329 <a href="http://httpd.apache.org/docs/2.4/mod/mod_userdir.html" rel="nofollow">public_html</a>
337 directories (when enabled) and <tt>/usr/share</tt> (for web330 directories (when enabled) and <tt>/usr/share</tt> (for web
338 applications). If your site is using a web document root331 applications). If your site is using a web document root
@@ -341,8 +334,7 @@
341 </p>334 </p>
342 <p>335 <p>
343 The default Ubuntu document root is <tt>/var/www/html</tt>. You336 The default Ubuntu document root is <tt>/var/www/html</tt>. You
344 can make your own virtual hosts under /var/www. This is different337 can make your own virtual hosts under /var/www.
345 to previous releases which provides better security out of the box.
346 </p>338 </p>
347 </div>339 </div>
348340
@@ -359,17 +351,13 @@
359 </p>351 </p>
360 <p>352 <p>
361 Please report bugs specific to modules (such as PHP and others)353 Please report bugs specific to modules (such as PHP and others)
362 to respective packages, not to the web server itself.354 to their respective packages, not to the web server itself.
363 </p>355 </p>
364 </div>356 </div>
365357
366
367
368
369 </div>358 </div>
370 </div>359 </div>
371 <div class="validator">360 <div class="validator">
372 </div>361 </div>
373 </body>362 </body>
374</html>363</html>
375

Subscribers

People subscribed via source and target branches