ho una pagina che mi funziona su un porta dedicata del server: http://stampalabel:3000
ho configurato il proxy pass come segue affinche non debba mettere sempre la porta 3000 negli indirizzi
Codice: Seleziona tutto
GNU nano 6.2 /etc/apache2/sites-available/frontend.conf
<VirtualHost *:80>
ServerName stampalabel
ServerAlias stampalabel.dedalo.local
ServerAdmin ufficio.it@dedalo.com
DocumentRoot /var/www/html/frontend
<Location />
Require all granted
ProxyPass http://stampalabel:3000/
ProxyPassReverse http://stampalabel:3000
</Location>
ErrorLog ${APACHE_LOG_DIR}/front.error.log
CustomLog ${APACHE_LOG_DIR}/front.access.log combined
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set Referrer-Policy "no-referrer-when-downgrade"
Header always set X-Content-Type-Options "nosniff"
</IfModule>
</VirtualHost>
cosa sbaglio o cosa devo fare oltre?Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request....
facendo anche
Codice: Seleziona tutto
sudo apache2ctl configtest
Codice: Seleziona tutto
sudo: unable to resolve host usrv01.dedalo.local: Name or service not known
AH00557: apache2: apr_sockaddr_info_get() failed for usrv01.dedalo.local
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK