New answers tagged virtualhost
2
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Should do the trick.
0
If your web page is hosted on port 9001, just enable any port on your linux box and make these changes in /etc/httpd/conf.d/ssl.conf. Then, set your listen port to 9002 and create your SSL certificate and key and put the following configuration in your httpd.conf file:
Listen 9001
<VirtualHost *:9001>
ServerAdmin root@localhost
DocumentRoot ...
0
Remember, logs directory must exist before start server.
1
Few things to try:
1) This could be because you have localbost setup as a hostname which would more and likely trigger the default, check in /etc/hostname or opt use a FQDN such as web.localhost
2) Another thing to try is putting Default at the bottom rather than top as those higher get more priority.
3) Obvious fix don't use localhost as a vhost :)
I'm ...
Top 50 recent answers are included
