17.xhtml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * <https://y.st./>
  4. * Copyright © 2016 Alex Yst <mailto:copyright@y.st>
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <https://www.gnu.org./licenses/>.
  18. **/
  19. $xhtml = array(
  20. 'title' => 'I&apos;m done with this',
  21. 'body' => <<<END
  22. <p>
  23. Someone writing on the <a href="https://github.com/curl/curl/issues/716">$a[cURL] bug report page</a> is continuing to justify the stripping of the trailing dot from the $a[HTTP] Host header.
  24. I thought that I was ready to just call $a[cURL] a lost cause, and continue on my way, but this inability to get through to people that standards should be followed is still getting on my nerves.
  25. It has prompted me to start making preparations for once I have control of my own clearnet website again.
  26. I&apos;ve added this to the <code>&lt;VirtualHost/&gt;</code> that serves my non-onion websites:
  27. </p>
  28. <blockquote><pre><code>RewriteEngine On
  29. RewriteCond %{HTTP_HOST} ^(.*[0-9a-z])$ [NC]
  30. RewriteRule ^(.*)\$ https://%1./ [R=301,L]</code></pre></blockquote>
  31. <p>
  32. This host isn&apos;t reachable from the clearnet aside from on my local network, but tests show that it functions the way that I want it to.
  33. Screw non-conforming clients.
  34. This is personal.
  35. I also built a skeletal 400 page in $a[PHP] that causes the server to send the desired pages to clients even if they send malformed $a[SNI] host names; the catch is that i intentionally didn&apos;t change the $a[HTTP] response code.
  36. Web clients will still see a 400 error code.
  37. Some testing on my mother&apos;s machine shows that Internet Explorer refuses to display the page sent if a 400 error code is present, so Internet Explorer won&apos;t be able to see my website.
  38. I might elaborate on my 400 error page script to make it insert a warning into $a[XHTML] files as well.
  39. That way viewers will see a message telling them that their Web browser is wonky and will be provided a link to a page detailing all the known Web clients with this issue and links to the bug reports.
  40. Then again, maybe I won&apos;t even use this 400 error script at all.
  41. Maybe I&apos;ll just let <a href="apt:apache2">Apache</a> do things the way it does by default, but provide a static 400 error page for it to send explaining the issue.
  42. Any client that erroneously strips the trailing dot off of the $a[HTTP] Host header will cause itself to go into a redirect loop.
  43. I can&apos;t help that and it&apos;s not my job to try.
  44. I&apos;m done with this, at least for now.
  45. </p>
  46. <p>
  47. I&apos;ve modified the hyperlinks in the copyright sections of my pages on this site to point to the dotted version of my main domain, as well as the copyright section in the comments at the top, as both are in my main template.
  48. I&apos;ve left old hyperlinks in weblog entries alone for now, mostly because it will be a huge pain to go back and modify all of these links.
  49. I&apos;ll probably do it eventually though.
  50. </p>
  51. <p>
  52. I checked back with the place that told me to check back today, and there are no jobs available there.
  53. I&apos;ve also signed up with the temp agency.
  54. I found that they don&apos;t actually try to match employees with jobs.
  55. Instead, they offer job listings that registered users can apply for.
  56. I&apos;ve applied for three listed jobs.
  57. </p>
  58. END
  59. );