-
Notifications
You must be signed in to change notification settings - Fork 3
/
apache-example.conf
52 lines (39 loc) · 1.15 KB
/
apache-example.conf
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<VirtualHost *:80>
ServerName 127.0.0.1
ServerAlias localhost
#ServerAlias nuget.company.com
#ServerAlias nuget
ServerAdmin [email protected]
DocumentRoot /var/www/pynuget
Alias /nuget/nuget_packages /var/www/pynuget/nuget_packages
WSGIDaemonProcess pynuget user=www-data group=www-data
WSGIScriptAlias /nuget /var/www/pynuget/wsgi.py
<Directory /var/www/pynuget>
Options -Indexes
WSGIProcessGroup pynuget
WSGIApplicationGroup %{GLOBAL}
# If you want to restrict which IP subnets can access the
# server (for example, running in a corporate environment),
# add the IPs to this list.
# Note that this is not a replacement for firewall access
# rules!
<RequireAny>
Require ip 192.168.11
Require ip 127.0.0.1
</RequireAny>
Require all denied
AllowOverride none
</Directory>
<Directory /var/www/pynuget/nuget_packages>
Options +Indexes
<RequireAny>
Require ip 192.168.11
Require ip 127.0.0.1
</RequireAny>
Require all denied
AllowOverride none
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet