]> git.pld-linux.org Git - packages/demarc.git/blob - demarc-apache.conf
- removed (redundant) Require: rc-scripts rule.
[packages/demarc.git] / demarc-apache.conf
1 # Include this file in httpd.conf using:
2 # ,,Include demarc.conf directive''
3
4 # BEST WAY TO RUN demarc IS TO USE mod-ssl DUE TO SECURITY REASONS
5
6 <IfModule !mod_ssl.c>
7 # For Non-SSL (pleace your domain instead localhost)
8 Redirect /demarc http://localhost//dm/demarc
9 </IfModule>
10
11 <IfModule mod_ssl.c>
12 # For SSL (pleace your domain instead localhost)
13 Redirect /demarc https://localhost/dm/demarc
14 </IfModule>
15
16 Alias /dm_images "/usr/share/demarc/images"
17
18 <Directory "/usr/share/demarc/cgi">
19         AllowOverride all
20         DirectoryIndex demarc
21 </Directory>
22
23
24 <IfModule !mod_perl.c>
25 #  For regular Perl add:
26 #  --------------------  
27 ScriptAlias /dm "/usr/share/demarc/cgi"
28
29 </IfModule>
30
31 <IfModule mod_perl.c>
32 #  For Mod_Perl add:
33 #  --------------------  
34
35         PerlModule Apache::Registry
36         KeepAlive Off
37         Alias /dm /usr/share/demarc/cgi
38
39 <Location /dm>
40         SetHandler perl-script
41         PerlHandler Apache::Registry
42         Options ExecCGI
43         allow from all
44         PerlSendHeader On
45         DirectoryIndex demarc
46 </Location>
47 </IfModule>
This page took 0.072458 seconds and 3 git commands to generate.