erich.wanker Posted February 16, 2021 Share Posted February 16, 2021 NOT A UNIGUI TOPIC 🙂 Hy .. has someone a idea what i made wrong in apache config? Multiple domains on one Win2019 Server with Apache/2.4.38 (Win32) OpenSSL/1.1.1a PHP/7.3.2 the unigui app runns allways - just the browser-message of "no valid certification" comes in some situations if i enter follwing adresses in Webbrowser:  domain1 -> Not save connection www.domain1 -> Save connection (with 2 "//" at the end in the browser-adressbar) http://domain1 -> Not save connection http://www.domain1 -> Save connection (with 2 "//" at the end in the browser-adressbar) https://domain1 -> Save connection https://www.domain1 -> Save connection i want to use the domainname with www, without www, with http or https .. every combination the certification is from LetsEncrypt ( domainname created without "www")  THANKX for help Erich  in vhost.config i have : <VirtualHost *:80> ServerName domain1 ServerAlias http://www.domain1 DocumentRoot "C:\Server\htdocs\domain1" <Directory "C:\Server\htdocs\domain1"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> RewriteEngine on RewriteCond %{HTTP_HOST} ^domain1 RewriteRule (.*) https://domain1/$1 [R=301,L] </VirtualHost> in ssl.config i have: <VirtualHost *:443> DocumentRoot "C:/Server/htdocs/domain1" ServerName domain1 ServerAlias http://www.domain1 ErrorLog "logs/error.log" <IfModule log_config_module> CustomLog "logs/access.log" combined </IfModule> SSLEngine on SSLCertificateFile "C:/Certbot/live/domain1/cert.pem" SSLCertificateKeyFile "C:/Certbot/live/domain1/privkey.pem" <FilesMatch "\.(cgi|shtml|pl|asp|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory "C:/Server/htdocs/domain1"> SSLOptions +StdEnvVars </Directory> BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 CustomLog "logs/ssl_request.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" </VirtualHost> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.