-
Notifications
You must be signed in to change notification settings - Fork 5
/
canvas.site
38 lines (38 loc) · 1.35 KB
/
canvas.site
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
<VirtualHost *:80>
ServerName canvas.nescorp.us
ServerAlias canvas.nescorp.us
ServerAdmin [email protected]
DocumentRoot /var/rails/canvas/public
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
RewriteCond %{REQUEST_URI} !^/health_check
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
ErrorLog /var/log/apache2/canvas_errors.log
LogLevel warn
CustomLog /var/log/apache2/canvas_access.log combined
SetEnv GEM_HOME /home/nilesh/gems
<Directory /var/rails/canvas/public>
Allow from all
Options -MultiViews
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerName canvas.nescorp.us
ServerAlias canvas.nescorp.us
ServerAdmin [email protected]
DocumentRoot /var/rails/canvas/public
ErrorLog /var/log/apache2/canvas_errors.log
LogLevel warn
CustomLog /var/log/apache2/canvas_ssl_access.log combined
SSLEngine on
BrowserMatch "MSIE [2-6]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
# the following ssl certificate files are generated for you from the ssl-cert package.
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
SetEnv GEM_HOME /home/nilesh/gems
<Directory /var/rails/canvas/public>
Allow from all
Options -MultiViews
</Directory>
</VirtualHost>