This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost 1.1.1.1:80> | |
ServerName example.com | |
RewriteEngine on | |
RewriteRule ^(.*) http://www.example.com [QSA,L,R=301] | |
CustomLog /home/www/example.com/log/apache/domaine-redirect.access.log combined env=!no_log | |
ErrorLog /home/www/example.com/log/apache/domaine-redirect.error.log | |
</VirtualHost> | |
<VirtualHost 1.1.1.1:80> | |
ServerAlias www.example.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Author: SeonghoonKim https://gist.github.com/SeonghoonKim/5385982 | |
# Author: Yoda-BZH https://gist.github.com/Yoda-BZH/05a7b33df1740882a8e39e0b38de682d | |
# Set up a default search path | |
PATH="/usr/bin:/bin" | |
CURL=`which curl` | |
if [ -z "$CURL" ] | |
then |