-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkindle.conf
57 lines (48 loc) · 1.74 KB
/
kindle.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
53
54
55
56
57
#
# VirtualHost template
# Note: to use the template, rename it to /etc/apache2/vhost.d/yourvhost.conf.
# Files must have the .conf suffix to be loaded.
#
# See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints
# about virtual hosts.
#
# NameVirtualHost statements can be added to /etc/apache2/listen.conf.
#
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName kindle.newsmth.com
# 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/zhangdongmao/newsmth
# if not specified, the global error log is used
ErrorLog /var/log/apache2/kindle.com-error_log
CustomLog /var/log/apache2/kindle.com-access_log combined
# don't loose time with IP address lookups
HostnameLookups Off
# needed for named virtual hosts
UseCanonicalName Off
# configures the footer on server-generated documents
ServerSignature On
Alias /kindle/media/ /home/zhangdongmao/newsmth/media/
<Directory /home/zhangdongmao/newsmth/media/>
Order deny,allow
Allow from all
Options Indexes FollowSymLinks
</Directory>
Alias /kindle/admin_media/ /home/zhangdongmao/newsmth/admin_media/
<Directory /home/zhangdongmao/newsmth/admin_media>
Order deny,allow
Allow from all
Options Indexes FollowSymLinks
</Directory>
WSGIScriptAlias /kindle /home/zhangdongmao/newsmth/django.wsgi
<Directory /home/zhangdongmao/newsmth>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>