[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apache 2.4 configuration



I am searching for a guide for configuration of Apache 2.4 on Debian
10.  Thus far, my web searches have found guides for Debian 9 and
guides for Apache 2.2.

I am aware of "https://httpd.apache.org/docs/2.4/"; and am digesting it
as rapidly as I can.

I have been working my way through the Chapter 11 tutorial of the
O'Reilly Perl Template Toolkit.  I am about halfway through the
chapter, starting to create a menu.  I can see the topmost page,
"index.html" and the menu, but when I click on any of the menu items,
the browser complains that the page cannot be found.  For example,
"index.html" and "about.html" are in the same directory, but the
browser cannot display "about.html".

After carefully checking my code against the example code published by
O'Reilly, I conclude that I must have an error in my Apache 2.4
configuration.
The HTML generated by the toolkit is placed in the directory
"/home/rlh/web/ttbook/html/", while images are placed in
"/home/rlh/web/ttbook/images/".  The tutorial, written for Apache
2.2, recommends:

Alias /ttbook/images/  /home/rlh/web/ttbook/images/
Alias /ttbook/         /home/rlh/web/ttbook/html/
Directory /home/rlh/web/ttbook/

Supposedly, the result is:

= The root document URL is "/ttbook/".
= The root images   URL is "/ttbook/images/".
= The default host is "http://localhost/";.

With my current mis-configuration, the generated HTML is visible at
"file:///home/rlh/web/ttbook/html/index.html" but not at
"http://localhost/index.html";.
I think that, to begin with, I need to find a good explanation of the
concept of "localhost".  Hopefully that is somewhere in the Apache 2.4
official documentation.

RLH


Reply to: