Tim_Wakeling
Basic Pleskian
- Server operating system version
- AlmaLinux 8.8
- Plesk version and microupdate number
- 18.0.53
On my server with nginx 1.24 I am getting the following red errors:
Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all [1] => -skip-removing ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-domains [1] => <list of all my domains here> ) Details: [2023-06-12 09:32:34.693] 1765631:6486e5f08831f ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/nginx-config' '-t'] with exit code [1] [2023-06-12 09:33:02.823] 1765631:6486e5f08831f ERR [panel] Apache config (16865622850.14422000) generation failed: Template_Exception: nginx: [warn] protocol options redefined for 193.33.178.154:443 in /etc/nginx/plesk.conf.d/vhosts/my-domain.com.conf:20 nginx: [warn] protocol options redefined for 193.33.178.154:443 in /etc/nginx/plesk.conf.d/vhosts/my-next-domain.com.conf:6 nginx: [warn] protocol options redefined for 193.33.178.154:443 in /etc/nginx/plesk.conf.d/vhosts/my-next-domain.com.conf:20 ...
... and this error continues with the same error for each of all my domains.
Looking in the conf files concerned, I see the following:
server {
listen 193.33.178.154:443 ssl;
ssl_certificate /usr/local/psa/var/certificates/scfKHcXRu;
ssl_certificate_key /usr/local/psa/var/certificates/scfKHcXRu;
server_name www.my-domain.com;
location / {
return 301 https://my-domain.com$request_uri;
}
}
server {
listen 193.33.178.154:443 ssl http2;
server_name my-domain.com;
server_name ipv4.my-domain.com;
ssl_certificate /usr/local/psa/var/certificates/scfKHcXRu;
ssl_certificate_key /usr/local/psa/var/certificates/scfKHcXRu;
... etc.
Googling suggests I should add "http2" to the "listen" command but it seems already to be there, at least on the second one in each domain.
The text in the conf file also suggests I shouldn't edit it anyway as it's automatically generated.
Any ideas? Thank you! Google is not helping me on this one.
Tim
Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all [1] => -skip-removing ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-domains [1] => <list of all my domains here> ) Details: [2023-06-12 09:32:34.693] 1765631:6486e5f08831f ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/nginx-config' '-t'] with exit code [1] [2023-06-12 09:33:02.823] 1765631:6486e5f08831f ERR [panel] Apache config (16865622850.14422000) generation failed: Template_Exception: nginx: [warn] protocol options redefined for 193.33.178.154:443 in /etc/nginx/plesk.conf.d/vhosts/my-domain.com.conf:20 nginx: [warn] protocol options redefined for 193.33.178.154:443 in /etc/nginx/plesk.conf.d/vhosts/my-next-domain.com.conf:6 nginx: [warn] protocol options redefined for 193.33.178.154:443 in /etc/nginx/plesk.conf.d/vhosts/my-next-domain.com.conf:20 ...
... and this error continues with the same error for each of all my domains.
Looking in the conf files concerned, I see the following:
server {
listen 193.33.178.154:443 ssl;
ssl_certificate /usr/local/psa/var/certificates/scfKHcXRu;
ssl_certificate_key /usr/local/psa/var/certificates/scfKHcXRu;
server_name www.my-domain.com;
location / {
return 301 https://my-domain.com$request_uri;
}
}
server {
listen 193.33.178.154:443 ssl http2;
server_name my-domain.com;
server_name ipv4.my-domain.com;
ssl_certificate /usr/local/psa/var/certificates/scfKHcXRu;
ssl_certificate_key /usr/local/psa/var/certificates/scfKHcXRu;
... etc.
Googling suggests I should add "http2" to the "listen" command but it seems already to be there, at least on the second one in each domain.
The text in the conf file also suggests I shouldn't edit it anyway as it's automatically generated.
Any ideas? Thank you! Google is not helping me on this one.
Tim