From: Loic & Edelberto Date: Thu, 13 Mar 2014 13:26:31 +0000 (-0300) Subject: Apache config X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=755512733e617b5f94382151e50b47a639268aa6;p=myslice.git Apache config --- diff --git a/apache/myslice.wsgi b/apache/myslice.wsgi new file mode 120000 index 00000000..69ee4920 --- /dev/null +++ b/apache/myslice.wsgi @@ -0,0 +1 @@ +unfold.wsgi \ No newline at end of file diff --git a/apache/sp-fibre/default b/apache/sp-fibre/default new file mode 100644 index 00000000..ec902c62 --- /dev/null +++ b/apache/sp-fibre/default @@ -0,0 +1,24 @@ +NameVirtualHost *:80 + + ServerName 200.130.15.182 + ServerSignature Off + + # Redirecionamento para SSL + #RewriteEngine on + #RewriteCond %{HTTPS} !=on + #RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L] + + DocumentRoot /var/www/ + + Options Indexes FollowSymLinks MultiViews + AllowOverride None + Order allow,deny + allow from all + + + ErrorLog /var/log/apache2/error.log + # Possible values include: debug, info, notice, warn, error, crit, + # alert, emerg. + LogLevel info + CustomLog /var/log/apache2/sp-access-80.log combined + diff --git a/apache/sp-fibre/myslice-django b/apache/sp-fibre/myslice-django new file mode 100644 index 00000000..bafed8fb --- /dev/null +++ b/apache/sp-fibre/myslice-django @@ -0,0 +1,56 @@ +NameVirtualHost *:443 + + + ServerAdmin support-myslice@myslice.info + ServerName portal.fibre.br + + DocumentRoot /var/www/myslice + WSGIScriptAlias / /var/www/myslice/apache/unfold.wsgi + + + Options Indexes FollowSymLinks MultiViews + AllowOverride All + Order allow,deny + allow from all + + + Alias /static/ /var/www/myslice/static/ + + Order deny,allow + Allow from all + + + #Alias /certificates/ /var/certificates-f4f/ + ErrorLog ${APACHE_LOG_DIR}/error.log + + LogLevel warn + + CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined + + # SSL + SSLEngine on + SSLProtocol all -SSLv2 + SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW + SSLCertificateKeyFile /etc/ssl/private/fibre.key + SSLCertificateFile /etc/ssl/certs/fibre.crt + SSLOptions +StdEnvVars +ExportCertData + SSLCACertificatePath /etc/sfa/trusted_roots + SSLVerifyClient optional_no_ca + #SSLVerifyClient require + SSLVerifyDepth 5 + ServerSignature On + + + SSLOptions +StdEnvVars + + + SSLOptions +StdEnvVars + + + BrowserMatch "MSIE [2-6]" \ + nokeepalive ssl-unclean-shutdown \ + downgrade-1.0 force-response-1.0 + BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown + + + diff --git a/apache/sp-fibre/shibboleth-myslice b/apache/sp-fibre/shibboleth-myslice new file mode 100644 index 00000000..fc39e546 --- /dev/null +++ b/apache/sp-fibre/shibboleth-myslice @@ -0,0 +1,61 @@ + + ServerName 200.130.15.182 + ServerSignature Off + + SSLEngine on + #SSLCertificateFile /etc/unfold/trusted_roots + SSLCertificateFile /etc/ssl/certs/fibre.crt + SSLCertificateKeyFile /etc/ssl/private/fibre.key + + #ShibURLScheme https + + DocumentRoot /var/www/ + + Options -Indexes FollowSymLinks -MultiViews + AllowOverride None + Order deny,allow + Allow from all + + +# WSGIScriptAlias / /usr/share/unfold/apache/myslice.wsgi +# +# +# Order deny,allow +# Allow from all +# +# +# Alias /static/ /usr/share/unfold/static/ +# +# Order deny,allow +# Allow from all +# + + +# +# AuthType Shibboleth +# ShibRequestSetting requireSession true +# ShibRequestSetting applicationId default +# Require valid-user +# + + + SetHandler shib + + + SetHandler shib + + + +# +# AuthType shibboleth +# ShibRequireSession On +# require valid-user +# + + # Possible values include: debug, info, notice, warn, error, crit, + # alert, emerg. + ErrorLog /var/log/apache2/error.log + LogLevel info + CustomLog /var/log/apache2/sp-access-443.log combined + +