Web server tutorial - Part 2
if it's different than the one the program would get (i.e., use "www"
instead of the host's real name).
Note: You cannot just invent host names and hope they work. The name you define
here must be a valid DNS name for your host. If you don't understand this, ask
your network administrator.
If your host doesn't have a registered DNS name, enter its IP address here.
You will have to access it by its address (e.g., http://123.45.67.89/) anyway,
and this will make redirections work in a sensible way.
ServerName localhost
DocumentRoot: The directory out of which you will serve your documents. By default,
all requests are taken from this directory, but symbolic links and aliases may be used to point to other locations.
DocumentRoot "/home/httpd/html"
Each directory to which Apache has access, can be configured with respect to which services and features are allowed and/or disabled in that directory (and its subdirectories).
First, we configure the "default" to be a very restrictive set of
permissions.
Options FollowSymLinks
AllowOverride None
Note: From this point forward you must specifically allow particular features
to be enabled - so if something's not working as you might expect, make sure
that you have specifically enabled it below.
This should be changed to whatever you set DocumentRoot to.
This may also be "None", "All", or any combination of "Indexes",
"Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
Note: "MultiViews" must be named explicitly --- "Options
All" doesn't give it to you.
Options Indexes Includes FollowSymLinks
This controls which options the .htaccess files in directories can override.
Can also be "All", or any combination of "Options", "FileInfo",
"AuthConfig", and "Limit"
AllowOverride all
Controls who can get stuff from this server.
Order allow,deny
Allow from all
UserDir: The name of the directory which is appended onto a user's home directory
if a ~user request is received.
UserDir public_html
- « first
- ‹ previous
- of 10
- next ›
- last »