forked from iamcal/oembed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.conf
33 lines (25 loc) · 816 Bytes
/
site.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
<Directory "/var/www/html/oembed.com/www">
Options -Indexes
AllowOverride All
php_flag display_errors on
php_value error_reporting 32767
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value magic_quotes_runtime 0
php_value register_long_arrays on
DirectoryIndex index.php index.htm
Order allow,deny
Allow from all
RewriteEngine On
RewriteCond %{http_host} !^oembed\.com [NC]
RewriteCond %{http_host} !^origin\.oembed\.com [NC]
RewriteRule ^(.*)$ %{REQUEST_SCHEME}://oembed.com/$1 [R=301,NC]
RewriteRule ^providers.json$ /json.php [L]
</Directory>
<VirtualHost *:80>
DocumentRoot /var/www/html/oembed.com/www
ServerName oembed.com
ServerAlias www.oembed.com origin.oembed.com
Redirect permanent / https://oembed.com/
</VirtualHost>
Include /var/www/html/oembed.com/ssl.conf