On Sun, 15 Jul 2018 08:59:48 +1200, IB JOE wrote:
> Okay, I'm sorry I didn't make that more clear.... I am trying to replace
> that exact file with files of my own and it was giving me grief.
>
> I'll look up this root thingy...
>
If you've not set up Apache before, its well worth reading its tutorials,
etc. and downloading a copy for instant reference if there isn't already
a copy in /usr/share/httpd/manual of similar place - thats where
installing the Fedora httpd* package set puts it.
For instance, you may want to leave little more than the single main
index page in /var/www/html and setting that up to point at one or more
user directories in /home, each containing a section of your web site:
its very easy to tell Apache to access these user published HTML page
structures. The configuration to do that works like this: each HTML page
structure goes in /home/user/public_html where its safe from being
clobbered by system upgrades, etc.
You just add something like this access control structure:
AllowOverride All
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ExecCGI
Order allow,deny
Allow from all
Require method GET POST OPTIONS
to /etc/httpd/conf/httpd.conf gives Apache access to these HTML page
collections under all users that have them or, better, put the access
control structure in /etc/httpd/conf.d/userdir.conf and tell the main
configuration file to:
IncludeOptional cond.d/*.conf
You can overide this default setup with more restrictive ...
directory> structures if you also have more private sets of pages, e.g. I
keep sensitive pages in an encrypted partition which has a more
restricted set of Apache access conditions.
...and don't forget to keep copies of the Apache configuration files
somewhere safe that gets backed up along with your other self-created
stuff!
--
Martin | martin at
Gregorie | gregorie dot org
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|