-
Notifications
You must be signed in to change notification settings - Fork 24
/
httpd.conf
90 lines (71 loc) · 2.32 KB
/
httpd.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<VirtualHost *:80>
ServerName example.com
ServerAlias *.example.com
ServerAdmin webmaster@example.com
# LogLevel debug
ErrorLog /home/example.com/code/logs/error_log
CustomLog /home/example.com/code/logs/access.log combined
XSendFile on
XSendFilePath /home/example.com/code/ShinyCMS/root/restricted-files
# CGI
# (this is a terrible way to run a Catalyst application - don't do it)
# Alias / /home/example.com/code/ShinyCMS/script/shinycms_cgi.pl
# Static FastCGI
# (not the same as mod_fcgid, see below)
# Alias /robots.txt /home/example.com/code/ShinyCMS/root/static/robots.txt
# Alias /static /home/example.com/code/ShinyCMS/root/static
#
# FastCgiServer /home/example.com/code/ShinyCMS/script/shinycms_fastcgi.pl -processes 3 -init-start-delay 10
# Alias / /home/example.com/code/ShinyCMS/script/shinycms_fastcgi.pl/
# External FastCGI
# (not the same as mod_fcgid, see below)
DocumentRoot /home/example.com/code/ShinyCMS/root
<Location />
Order allow,deny
Allow from all
</Location>
# Allow Apache to serve static content.
Alias /static /home/example.com/code/ShinyCMS/root/static
<Location /static>
SetHandler default-handler
</Location>
# Display friendly error page if the FastCGI process is not running.
ErrorDocument 502 /home/example.com/code/ShinyCMS/root/offline.html
# Connect to the external server.
FastCgiExternalServer /tmp/shinycms_example.com.fcgi -socket /tmp/shinycms_example.com.socket
Alias / /tmp/shinycms_example.com.fcgi/
# mod_fcgid
# (I couldn't get this to work - patches welcome)
# DocumentRoot /home/example.com/code/ShinyCMS/root
# Options +ExecCGI
#
# Alias /static /home/example.com/code/ShinyCMS/root/static
#
# <Location /static>
# SetHandler default-handler
# </Location>
#
# Alias / /home/example.com/code/ShinyCMS/script/shinycms_fastcgi.pl/
#
# <Location />
# Options +ExecCGI
# Order allow,deny
# Allow from all
# AddHandler fcgid-script .pl
# </Location>
# mod_perl
# (seems slow - optimisation hints and tips also welcome)
# PerlRequire /home/example.com/code/ShinyCMS/startup.pl # sample included
# PerlModule ShinyCMS
#
# Alias /static /home/example.com/code/ShinyCMS/root/static
#
# <Location />
# SetHandler modperl
# PerlResponseHandler +ShinyCMS
# </Location>
#
# <Location /static>
# SetHandler default-handler
# </Location>
</VirtualHost>