skip to Main Content

Nginx not redirecting domain as expected

I have the following nginx configuration file server { listen 80 default_server; server_name _; return 301 https://dashboard-test-deb11.company.com$request_uri; } server { server_name dashboard-test-deb11; return 301 https://dashboard-test-deb11.company.com$request_uri; } server { listen 443 ssl default_server; # listen [::]:443 ssl default_server; server_name dashboard-test-deb11.company.com; ssl_certificate…

VIEW QUESTION

SSL VirtualHost showing test page – Apache

I am using Apache httpd and have the following VirtualHost configuration: <VirtualHost *:443> ServerName www.test.site ServerAlias test.site DocumentRoot /var/www/test.site/html ErrorLog /var/www/test.site/log/error.log CustomLog /var/www/test.site/log/requests.log combined SSLEngine on SSLCertificateFile /etc/pki/tls/certs/ca.crt SSLCertificateKeyFile /etc/pki/tls/private/ca.key <Directory /var/www/html> AllowOverride none Order Allow,Deny Allow from all </Directory>…

VIEW QUESTION
Back To Top
Search