-
Notifications
You must be signed in to change notification settings - Fork 0
/
redirects.conf
49 lines (38 loc) · 1.47 KB
/
redirects.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
# -*- mode: apache; -*-
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName redirects.firefly.local
RewriteEngine On
RewriteRule ^(.*)$ /redirect.rb?path=$1
DocumentRoot /Users/gaurav/CodeBase/ruby-cgi
ScriptAlias / "/Users/gaurav/CodeBase/ruby-cgi/"
<Directory /Users/gaurav/CodeBase/ruby-cgi>
Options +ExecCGI
AddHandler cgi-script .rb
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ErrorLog "/private/var/log/apache2/redirects.firefly.local-error_log"
CustomLog "/private/var/log/apache2/redirects.firefly.local-access_log" common
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName redirects.firefly.local
RewriteEngine On
RewriteRule ^(.*)$ /redirect.rb?path=$1
DocumentRoot /Users/gaurav/CodeBase/ruby-cgi
ScriptAlias / "/Users/gaurav/CodeBase/ruby-cgi/"
<Directory /Users/gaurav/CodeBase/ruby-cgi>
Options +ExecCGI
AddHandler cgi-script .rb
AllowOverride None
Order allow,deny
Allow from all
</Directory>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/firefly.local.crt
SSLCertificateKeyFile /etc/apache2/ssl/firefly.local.key
ErrorLog "/private/var/log/apache2/redirects.firefly.local-error_log"
CustomLog "/private/var/log/apache2/redirects.firefly.local-access_log" common
</VirtualHost>