- AbitaregliIblei.it
- Server aggiornamenti agli script. - Editor HTML corretto un po'. - Record Mysql per server (appena iniziato)
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
Include /etc/apache2/sites-available/dominioinclude_test.abitaregliiblei.it.conf
|
||||
|
||||
# Configurazione per HTTP
|
||||
<VirtualHost 65.108.222.97:80>
|
||||
ServerName ${MIODOMINIO_COMPLETO}
|
||||
DocumentRoot /var/www/${MIODOMINIO_COMPLETO}
|
||||
|
||||
RewriteEngine on
|
||||
# Redirigi tutto il traffico HTTP verso HTTPS
|
||||
RewriteCond %{SERVER_NAME} =${MIODOMINIO_COMPLETO} [OR]
|
||||
RewriteCond %{SERVER_NAME} =www.${MIODOMINIO_COMPLETO}
|
||||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||||
|
||||
ErrorLog /var/www/${MIODOMINIO_COMPLETO}/logs/error.log
|
||||
CustomLog /var/www/${MIODOMINIO_COMPLETO}/logs/access.log combined
|
||||
</VirtualHost>
|
||||
|
||||
|
||||
# Configurazione per HTTPS
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost 65.108.222.97:443>
|
||||
ServerName ${MIODOMINIO_COMPLETO}
|
||||
DocumentRoot /var/www/${MIODOMINIO_COMPLETO}
|
||||
|
||||
ErrorLog /var/www/${MIODOMINIO_COMPLETO}/logs/error.log
|
||||
CustomLog /var/www/${MIODOMINIO_COMPLETO}/logs/access.log combined
|
||||
|
||||
<Directory /var/www/${MIODOMINIO_COMPLETO}/>
|
||||
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
RewriteEngine on
|
||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||
SSLCertificateFile /etc/letsencrypt/live/${MIODOMINIO}/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/${MIODOMINIO}/privkey.pem
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
@@ -0,0 +1,4 @@
|
||||
Define MIODOMINIO abitaregliiblei.it
|
||||
Define MIODOMINIO_COMPLETO test.abitaregliiblei.it
|
||||
Define MIOURL_TESTAPI testapi.abitaregliiblei.it
|
||||
Define PORTA 3022
|
||||
51
docs/apache2/ssl_vhost_api.abitaregliiblei.it.conf
Normal file
51
docs/apache2/ssl_vhost_api.abitaregliiblei.it.conf
Normal file
@@ -0,0 +1,51 @@
|
||||
Include /etc/apache2/sites-available/dominioinclude_test.abitaregliiblei.it.conf
|
||||
|
||||
# Configurazione per HTTP
|
||||
<VirtualHost 65.108.222.97:80>
|
||||
ServerName ${MIODOMINIO_COMPLETO}
|
||||
DocumentRoot /var/www/${MIODOMINIO_COMPLETO}
|
||||
|
||||
RewriteEngine on
|
||||
# Redirigi tutto il traffico HTTP verso HTTPS
|
||||
RewriteCond %{SERVER_NAME} =${MIODOMINIO_COMPLETO} [OR]
|
||||
RewriteCond %{SERVER_NAME} =www.${MIODOMINIO_COMPLETO}
|
||||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||||
|
||||
ErrorLog /var/www/${MIODOMINIO_COMPLETO}/logs/error.log
|
||||
CustomLog /var/www/${MIODOMINIO_COMPLETO}/logs/access.log combined
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost 65.108.222.97:443>
|
||||
|
||||
ServerName ${MIOURL_TESTAPI}
|
||||
ServerAdmin surya@riso.app
|
||||
|
||||
SSLEngine On
|
||||
SSLProtocol -ALL +TLSv1.2 +TLSv1.3
|
||||
SSLCompression Off
|
||||
SSLHonorCipherOrder off
|
||||
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:E>
|
||||
SSLVerifyDepth 10
|
||||
SSLCertificateFile /etc/letsencrypt/live/${MIODOMINIO}/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/${MIODOMINIO}/privkey.pem
|
||||
|
||||
ProxyPreserveHost On
|
||||
SSLProxyEngine On
|
||||
SSLProxyVerify None
|
||||
SSLProxyCheckPeerCN Off
|
||||
SSLProxyCheckPeerName Off
|
||||
ProxyPass / https://localhost:${PORTA}/ retry=0 timeout=5 connectiontimeout=2
|
||||
ProxyPassReverse / https://localhost:${PORTA}/
|
||||
|
||||
ProxyTimeout 5
|
||||
|
||||
LogLevel debug proxy:trace5
|
||||
ErrorLog /var/www/${MIODOMINIO_COMPLETO}/logs/error.log
|
||||
CustomLog /var/www/${MIODOMINIO_COMPLETO}/logs/access.log combined
|
||||
|
||||
<Location />
|
||||
ProxyPassReverse /
|
||||
SetEnv force-proxy-request-1.0 1
|
||||
SetEnv proxy-nokeepalive 1
|
||||
</Location>
|
||||
</VirtualHost>
|
||||
@@ -1,22 +1,11 @@
|
||||
<VirtualHost 65.108.222.97:443>
|
||||
ServerName api.gruppomacro.app
|
||||
ServerAlias www.api.gruppomacro.app
|
||||
ServerAdmin surya@riso.app
|
||||
|
||||
SSLEngine On
|
||||
SSLProtocol -ALL +TLSv1.2 +TLSv1.3
|
||||
SSLCompression Off
|
||||
SSLHonorCipherOrder off
|
||||
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:E>
|
||||
SSLVerifyDepth 10
|
||||
SSLCertificateFile /etc/letsencrypt/live/gruppomacro.app/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/gruppomacro.app/privkey.pem
|
||||
|
||||
ProxyPreserveHost On
|
||||
SSLProxyEngine On
|
||||
SSLProxyVerify None
|
||||
SSLProxyCheckPeerCN Off
|
||||
SSLProxyCheckPeerName Off
|
||||
ProxyPass / https://localhost:3010/ retry=0 timeout=5 connectiontimeout=2
|
||||
ProxyPassReverse / https://localhost:3010/
|
||||
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<VirtualHost 65.108.222.97:443>
|
||||
ServerName abitaregliiblei.it
|
||||
ServerAlias *.abitaregliiblei.it
|
||||
ServerAdmin surya@riso.app
|
||||
SSLEngine On
|
||||
SSLProtocol -ALL +TLSv1.2
|
||||
SSLCompression Off
|
||||
SSLHonorCipherOrder off
|
||||
SSLCipherSuite ECDH+AESGCM:ECDH+AES256:!aNULL:!MD5:!DSS:!DH:!AES128
|
||||
SSLVerifyDepth 10
|
||||
SSLCertificateFile /etc/letsencrypt/live/abitaregliiblei.it/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/abitaregliiblei.it/privkey.pem
|
||||
DocumentRoot "/var/customers/webs/paolouser/abitaregliiblei.it"
|
||||
<Directory "/var/customers/webs/paolouser/abitaregliiblei.it/">
|
||||
CGIPassAuth On
|
||||
Require all granted
|
||||
AllowOverride All
|
||||
</Directory>
|
||||
LogLevel warn
|
||||
ErrorLog "/var/customers/logs/paolouser-error.log"
|
||||
CustomLog "/var/customers/logs/paolouser-access.log" combined
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user