- Le immagini uploadate non vengono visualizzate subito... cache... aggiungere la versione dell'immagine: vers_img
- Aggiunto il Server TESTRISO e TEST_PCB.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
Define MIODOMINIO piuchebuono.app
|
||||
Define MIODOMINIO_COMPLETO piuchebuono.app
|
||||
Define MIOURL_API api.piuchebuono.app
|
||||
Define PORTA 3000
|
||||
@@ -1,4 +1,4 @@
|
||||
Define MIODOMINIO abitaregliiblei.it
|
||||
Define MIODOMINIO_COMPLETO test.abitaregliiblei.it
|
||||
Define MIOURL_TESTAPI testapi.abitaregliiblei.it
|
||||
Define PORTA 3022
|
||||
Define MIOURL_API testapi.abitaregliiblei.it
|
||||
Define PORTA 3021
|
||||
@@ -0,0 +1,4 @@
|
||||
Define MIODOMINIO riso.app
|
||||
Define MIODOMINIO_COMPLETO test.riso.app
|
||||
Define MIOURL_API testapi.riso.app
|
||||
Define PORTA 3005
|
||||
@@ -0,0 +1,3 @@
|
||||
Include /etc/apache2/sites-available/dominioinclude_piuchebuono.app.conf
|
||||
|
||||
Include /etc/apache2/sites-available/nodejs_virtualhost_ssl_http_https.conf
|
||||
@@ -1,14 +1,11 @@
|
||||
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}
|
||||
ServerName ${MIOURL_API}
|
||||
|
||||
RewriteEngine on
|
||||
# Redirigi tutto il traffico HTTP verso HTTPS
|
||||
RewriteCond %{SERVER_NAME} =${MIODOMINIO_COMPLETO} [OR]
|
||||
RewriteCond %{SERVER_NAME} =www.${MIODOMINIO_COMPLETO}
|
||||
RewriteCond %{SERVER_NAME} =${MIOURL_API} [OR]
|
||||
RewriteCond %{SERVER_NAME} =www.${MIOURL_API}
|
||||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||||
|
||||
ErrorLog /var/www/${MIODOMINIO_COMPLETO}/logs/error.log
|
||||
@@ -16,8 +13,7 @@ Include /etc/apache2/sites-available/dominioinclude_test.abitaregliiblei.it.conf
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost 65.108.222.97:443>
|
||||
|
||||
ServerName ${MIOURL_TESTAPI}
|
||||
ServerName ${MIOURL_API}
|
||||
ServerAdmin surya@riso.app
|
||||
|
||||
SSLEngine On
|
||||
@@ -39,7 +35,7 @@ Include /etc/apache2/sites-available/dominioinclude_test.abitaregliiblei.it.conf
|
||||
|
||||
ProxyTimeout 5
|
||||
|
||||
LogLevel debug proxy:trace5
|
||||
LogLevel warn
|
||||
ErrorLog /var/www/${MIODOMINIO_COMPLETO}/logs/error.log
|
||||
CustomLog /var/www/${MIODOMINIO_COMPLETO}/logs/access.log combined
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
Include /etc/apache2/sites-available/dominioinclude_piuchebuono.app.conf
|
||||
|
||||
Include /etc/apache2/sites-available/websites_ssl_virtualhost.conf
|
||||
@@ -0,0 +1,3 @@
|
||||
Include /etc/apache2/sites-available/dominioinclude_test.abitaregliiblei.it.conf
|
||||
|
||||
Include /etc/apache2/sites-available/websites_ssl_virtualhost.conf
|
||||
30
docs/apache2/sites-available/websites_ssl_virtualhost.conf
Normal file
30
docs/apache2/sites-available/websites_ssl_virtualhost.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
<VirtualHost 65.108.222.97:80>
|
||||
ServerName ${MIODOMINIO_COMPLETO}
|
||||
RewriteEngine On
|
||||
|
||||
# Forza la connessione HTTPS
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule ^ https://${MIODOMINIO_COMPLETO}%{REQUEST_URI} [L,R=301]
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost 65.108.222.97:443>
|
||||
ServerName ${MIODOMINIO_COMPLETO}
|
||||
DocumentRoot /var/www/${MIODOMINIO_COMPLETO}
|
||||
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/${MIODOMINIO}/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/${MIODOMINIO}/privkey.pem
|
||||
<Directory /var/www/${MIODOMINIO_COMPLETO}/>
|
||||
CGIPassAuth On
|
||||
Require all granted
|
||||
AllowOverride All
|
||||
</Directory>
|
||||
LogLevel warn
|
||||
ErrorLog "/var/www/${MIODOMINIO_COMPLETO}/logs/error.log"
|
||||
CustomLog "/var/www/${MIODOMINIO_COMPLETO}/logs/access.log" combined
|
||||
</VirtualHost>
|
||||
@@ -1,23 +0,0 @@
|
||||
<VirtualHost 65.108.222.97:443>
|
||||
ServerName api.gruppomacro.app
|
||||
ServerAdmin surya@riso.app
|
||||
|
||||
SSLEngine On
|
||||
SSLCertificateFile /etc/letsencrypt/live/gruppomacro.app/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/gruppomacro.app/privkey.pem
|
||||
|
||||
ProxyPass / https://localhost:3010/ retry=0 timeout=5 connectiontimeout=2
|
||||
ProxyPassReverse / https://localhost:3010/
|
||||
|
||||
ProxyTimeout 5
|
||||
|
||||
LogLevel debug proxy:trace5
|
||||
ErrorLog "/var/customers/logs/paolouser-error.log"
|
||||
CustomLog "/var/customers/logs/paolouser-access.log" combined
|
||||
|
||||
<Location />
|
||||
ProxyPassReverse /
|
||||
SetEnv force-proxy-request-1.0 1
|
||||
SetEnv proxy-nokeepalive 1
|
||||
</Location>
|
||||
</VirtualHost>
|
||||
@@ -1,34 +0,0 @@
|
||||
<VirtualHost 89.36.222.238:443>
|
||||
ServerName api.riso.app
|
||||
ServerAlias www.api.riso.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/riso.app/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/riso.app/privkey.pem
|
||||
|
||||
ProxyPreserveHost On
|
||||
SSLProxyEngine On
|
||||
SSLProxyVerify None
|
||||
SSLProxyCheckPeerCN Off
|
||||
SSLProxyCheckPeerName Off
|
||||
ProxyPass / https://localhost:3005/ retry=0 timeout=5 connectiontimeout=2
|
||||
ProxyPassReverse / https://localhost:3005/
|
||||
|
||||
ProxyTimeout 5
|
||||
|
||||
LogLevel debug proxy:trace5
|
||||
ErrorLog "/var/www/riso.app/logs/error.log"
|
||||
CustomLog "/var/www/riso.app/logs/access.log" combined
|
||||
|
||||
<Location />
|
||||
ProxyPassReverse /
|
||||
SetEnv force-proxy-request-1.0 1
|
||||
SetEnv proxy-nokeepalive 1
|
||||
</Location>
|
||||
</VirtualHost>
|
||||
@@ -1,22 +0,0 @@
|
||||
<VirtualHost 65.108.222.97:443>
|
||||
ServerName piuchebuono.app
|
||||
ServerAlias *.piuchebuono.app
|
||||
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/piuchebuono.app/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/piuchebuono.app/privkey.pem
|
||||
DocumentRoot "/var/customers/webs/paolouser/piuchebuono.app"
|
||||
<Directory "/var/customers/webs/paolouser/piuchebuono.app/">
|
||||
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