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

Re: apache 2.4 configuration



On 4/6/2020 8:26 AM, Russell L. Harris wrote:
> 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";.

If you don't specify 'index.html', do you get it?

Looking in apache's log should give a clue of what's going rong.

> 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

localhost is simply a name to specify 127.0.0.1 or ::1.

> official documentation.
>
> RLH
>


--
John Doe


Reply to: