Added stuff to defaria.com
[clearscm.git] / defaria.com / etc / httpd / conf.d / defaria.conf
1 # Global...
2 ServerName defaria.com
3 ServerAdmin Andrew@DeFaria.com
4
5 # HTTPS
6 LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
7 LoadModule socache_shmcb_module /usr/lib/apache2/modules/mod_socache_shmcb.so
8
9 Listen 443
10
11 SSLUseStapling On
12 SSLStaplingCache "shmcb:logs/ssl_stabling(32768)"
13 SSLProtocol ALL -SSLv2 -SSLv3
14 SSLHonorCipherOrder on
15 SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS"
16
17 # Mail Authorization and Permission System (MAPS)
18 Alias /maps "/opt/clearscm/maps"
19
20 <Directory "/opt/clearscm/maps">
21    Options +Indexes +FollowSymLinks +MultiViews +ExecCGI +Includes
22    AllowOverride AuthConfig
23    Require all granted
24 </Directory>
25
26 # Clearadm - Not currently working. How exactly is clearadm supposed
27 #            to probe systems in my apartment?
28 Alias /clearadm "/opt/clearscm/clearadm"
29
30 <Directory "/opt/clearscm/clearadm">
31   Options Indexes FollowSymLinks MultiViews ExecCGI Includes
32   AllowOverride AuthConfig
33   Require all granted
34 </Directory>
35
36 #ScriptAlias /cgi-bin/ /web/bin
37
38 <Directory "/web/bin">
39   AllowOverride None
40   AddHandler cgi-script .cgi .pl
41   Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
42   Require all granted
43 </Directory>
44
45 # Resume
46 Redirect /resume http://clearscm.com/Resumes/Andrew
47
48 # Clearscm (Move to VirtualHost when ready)
49 #Alias /clearscm "/opt/clearscm/web"
50
51 #<Directory "/opt/clearscm/web">
52   #Options Indexes FollowSymLinks MultiViews ExecCGI Includes
53   #AllowOverride AuthConfig
54   #Require all granted
55 #</Directory>
56
57 # Songbook
58 Alias /songbook "/opt/songbook/web"
59
60 <Directory "/opt/songbook/web">
61   Options Indexes FollowSymLinks MultiViews ExecCGI Includes
62   AllowOverride AuthConfig
63   Require all granted
64 </Directory>
65
66 Alias "/Media" "/opt/media"
67
68 <Directory "/opt/media">
69   Options Indexes FollowSymLinks MultiViews
70   AllowOverride AuthConfig
71   Require all granted
72 </Directory>
73
74 <VirtualHost *:80>
75   # ClearSCM
76   ServerName clearscm.com
77   DocumentRoot "/opt/clearscm/web"
78   AddHandler cgi-script .cgi .pl
79
80   # Resume
81   Redirect /resume http://clearscm.com/Resumes/Andrew
82
83   <Directory "/opt/clearscm/web">
84     Options Indexes FollowSymLinks MultiViews ExecCGI Includes
85     AllowOverride AuthConfig Options
86     Require all granted
87   </Directory>
88 </VirtualHost>
89
90 # By default it's defaria.com
91 <VirtualHost *:80>
92   #RedirectMatch /blogs/Status/(.*) http://defaria.com/blogs/Status2/
93
94   ServerName defaria.com
95
96   # HTTPS
97   RewriteEngine on
98   RewriteCond %{REQUEST_URI} !^/blogs/General/
99   RewriteRule (.*) https://defaria.com/$1 [R=301,L]
100
101   #RedirectMatch /blogs/(.*) http://defaria.com/blogs/$1
102   #Redirect / https://defaria.com/
103
104   DocumentRoot /web
105
106   <Directory />
107     Options FollowSymLinks
108     AllowOverride None
109   </Directory>
110
111   AddHandler cgi-script .cgi .pl
112
113   <Directory /web/>
114     Options +Indexes +FollowSymLinks +MultiViews +ExecCGI
115     AllowOverride All
116     Require all granted
117   </Directory>
118
119   ErrorLog /var/log/httpd/error.log
120
121   # Possible values include: debug, info, notice, warn, error, crit,
122   # alert, emerg.
123   LogLevel warn
124
125   CustomLog /var/log/httpd/access.log combined
126
127   AddHandler cgi-script .cgi .pl
128 </VirtualHost>
129
130 <VirtualHost *:443>
131   ServerName defaria.com
132   SSLEngine on
133   SSLCertificateFile /etc/letsencrypt/live/defaria.com/cert.pem
134   SSLCertificateKeyFile /etc/letsencrypt/live/defaria.com/privkey.pem
135   DocumentRoot /web
136   AddHandler cgi-script .cgi .pl
137
138   <Directory /web>
139     Require all granted
140     Options +Indexes +FollowSymLinks +MultiViews +ExecCGI
141     AllowOverride All
142   </Directory>
143   SSLCertificateChainFile /etc/letsencrypt/live/defaria.com/chain.pem
144 </VirtualHost>