Order , Allow , and Deny are directives that work together to define which remote users may access the directory. Order sets the order in which the Allow and Deny directives are used, and the value must be Allow,Deny or Deny,Allow (the default). The Allow and Deny directives accept a list of full or partial domain names, IP addresses, or IP addresses and netmask or network bit count.
For example, to enable access only from computers on your internal network, assuming your network is 12.200.X.X :
Order Allow,Deny
Allow from
Deny from all
On the other hand, you could enable access only from computers that are not in your internal network:
Order Deny,Allow
Deny from
Allow from all
Or you could exclude access from specific domains:
Order Deny,Allow
Deny from
Allow from all
The AllowOverride directive enables the use of a hidden file,
The next set of directory containers configure special permissions for the
<Directory '/var/www/icons'>
Options Indexes MultiViews
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
<Directory '/var/www/cgi-bin'>
AllowOverride None
Options None
Order Allow,Deny
Allow from all
</Directory>
<Directory '/var/www/error'>
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order Allow,Deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>
These directories are not within the normal DocumentRoot and are instead made accessible through the use of Alias and ScriptAlias directives:
Alias /icons/ '/var/www/icons/'
ScriptAlias /cgi-bin/ '/var/www/cgi-bin/'
Alias /error/ '/var/www/error/'
These directives make the indicated directories appear to exist within the document tree; for example, a request for
Since
7.5.1.6.4. Enabling personal web pages
To permit each user to maintain her own web directory, find the UserDir section of
<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
UserDir disable
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the 'UserDir disable' line above, and uncomment
# the following line instead:
#
#UserDir public_html
</IfModule>
Comment out the line that reads UserDir disable and uncomment the line which reads UserDir public_html :
<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence