Created
April 22, 2014 09:51
-
-
Save Blacksly/11172412 to your computer and use it in GitHub Desktop.
This file contains 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
#Configuration du module SCGI pour la synchro rTorrent/Rutorrent | |
SCGIMount /RPC2 127.0.0.1:5000 | |
ServerName http://195.154.6.66/ | |
#Redirection http > https | |
<VirtualHost 195.154.6.66:80> | |
ServerAdmin admin@kim.sufi | |
DocumentRoot /var/www/ | |
ServerName http://195.154.6.66/ | |
Redirect permanent / https://195.154.6.66/ | |
</VirtualHost> | |
#SSL | |
<IfModule mod_ssl.c> | |
<VirtualHost 195.154.6.66:443> | |
ServerAdmin admin@kim.sufi | |
DocumentRoot /var/www | |
ServerName https://195.154.6.66 | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> | |
<Directory /var/www/> | |
Options FollowSymLinks ExecCGI | |
AllowOverride All | |
Order allow,deny | |
allow from All | |
</Directory> | |
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ | |
<Directory "/usr/lib/cgi-bin"> | |
AllowOverride None | |
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch | |
Order allow,deny | |
Allow from all | |
</Directory> | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
# Possible values include: debug, info, notice, warn, error, crit, | |
# alert, emerg. | |
LogLevel warn | |
CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined | |
# Enable/Disable SSL for this virtual host. | |
SSLEngine on | |
SSLCertificateFile /etc/ssl/certs/server.crt | |
SSLCertificateKeyFile /etc/ssl/certs/server.key | |
<FilesMatch "\.(cgi|shtml|phtml|php)$"> | |
SSLOptions +StdEnvVars | |
</FilesMatch> | |
<Directory /usr/lib/cgi-bin> | |
SSLOptions +StdEnvVars | |
</Directory> | |
BrowserMatch "MSIE [2-6]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 | |
# MSIE 7 and newer should be able to use keepalive | |
BrowserMatch "MSIE [7-9]" ssl-unclean-shutdown | |
<Directory /var/www> | |
Options All | |
AllowOverride All | |
AuthName "Private" | |
AuthType Basic | |
AuthUserFile /etc/apache2/.htpasswd | |
Require user blacksly | |
Order allow,deny | |
Allow from All | |
</Directory> | |
<Directory /var/www/downloads> | |
Options All | |
AllowOverride All | |
AuthName "Private" | |
AuthType Basic | |
AuthUserFile /etc/apache2/.htpasswd | |
Require user blacksly | |
Order allow,deny | |
Allow from All | |
</Directory> | |
</VirtualHost> | |
</IfModule> | |
DirectoryIndex index.html index.php /_h5ai/server/php/index.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment