Redirect HTTP to HTTPS on default virtual host without ServerName
Try adding this in your vhost config: RewriteEngine On RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
Try adding this in your vhost config: RewriteEngine On RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
SSLCertificateChainFile was a correct option to choose but this directive became obsolete as of Apache 2.4.8. This directive caused the listed file to be sent along with the certificate to any clients that connect. SSLCACertificateFile (hereafter “CACert”) supersedes SSLCertificateChainFile (hereafter “Chain”), and additionally permits the use of the cert in question to sign client certificates. … Read more
Using SetEnvIf, you can create a variable when the request starts with some path, then use the Satisfy Any directive to avoid having to login. # set an environtment variable “noauth” if the request starts with “/callbacks/” SetEnvIf Request_URI ^/callbacks/ noauth=1 # the auth block AuthName “Please login.” AuthGroupFile /dev/null AuthType Basic AuthUserFile /xxx/.htpasswd # … Read more
I found I needed to enable the SSL module in Apache (obviously prefix commands with sudo if you are not running as root): a2enmod ssl then restart Apache: /etc/init.d/apache2 restart More details of SSL in Apache for Ubuntu / Debian here.
I had the same problem on windows 10, IIS/10.0 was using port 80 To solve that: find service “W3SVC” disable it, or set it to “manual” French name is: “Service de publication World Wide Web“ English name is: “World Wide Web Publishing Service“ german name is: “WWW-Publishingdienst” – thanks @fiffy Polish name is: “Usługa publikowania … Read more
Try putting this in your .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} ^sub.domain.example RewriteRule ^(.*)$ /subdomains/sub/$1 [L,NC,QSA] For a more general rule (that works with any subdomain, not just sub) replace the last two lines with this: RewriteEngine on RewriteCond %{HTTP_HOST} ^(.*)\.domain\.example RewriteRule ^(.*)$ subdomains/%1/$1 [L,NC,QSA]
(Answered by the OP in a question edit. Converted to a community wiki answer. See Question with no answers, but issue solved in the comments (or extended in chat) ) The OP wrote: The answer is here: http://sysadminsjourney.com/content/2010/02/01/apache-modproxy-error-13permission-denied-error-rhel/ Which is a link to a blog that explains: SELinux on RHEL/CentOS by default ships so that … Read more
It sounds like you don’t want to install Apache, but you do want Apache Bench. May I recommend XAMPP? Download the zip or 7zip versions (much larger download than regular Apache but you won’t have to install). Unzip the download. This is where what I would recommend, and where you currently are converge. Since you … Read more
Apparently there is a HTTPS environment variable available that can be used easily. For people with the same question: Header set Strict-Transport-Security “max-age=31536000” env=HTTPS