-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
37 lines (32 loc) · 1.72 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#------------------------------------------------------------------------------
# Vhosts Server root folder. File .htaccess
# This file provides server security limiting access to the localhost only.
# Comment next four lines to deactivate. (Allows external access)
#------------------------------------------------------------------------------
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
#------------------------------------------------------------------------------
# To allow execution of cgi scripts in this directory uncomment next two lines.
#------------------------------------------------------------------------------
AddHandler cgi-script .pl .cgi
Options +ExecCGI +FollowSymLinks
#------------------------------------------------------------------------------
# Activate this section to use the Private Server Feature!
# AuthName: Replace with a suitable name appropriate to your site
# AuthType: Do not change
# AuthUserFile: ../../../htpasswd Corresponds to folder UniServer\htpasswd
# In folder UniServer\htpasswd create a new folder e.g Vhost_1
# In this new folder create a new file named .htpasswd
# Edit this file and add a name and passwrd for example
# name123:password45
# Path will look like this (replace xxx with your new folder):
# ../../../htpasswd/Vhost_1/.htpasswd
# Note: AuthUserFile - File path is relative to server root
# To lock server, uncomment the next 4 lines. (A name and password is required)
#------------------------------------------------------------------------------
#AuthName "Uniform Server - Server Access"
#AuthType Basic
#AuthUserFile ../../../htpasswd/xxx/.htpasswd
#Require valid-user