apache - RewriteRule for http and https -


on ubuntu system, have drupal running on port 80. , have other services running on port 8000(gunicorn), 8080(customserver), etc.

my objective direct port 80 traffic https , leave other services (8000,8080,etc) http.

for have in 000-default:

<virtualhost *:80>   rewriteengine on   rewriterule ^(.*)$ https://%{http_host}$1 [r=301,l]    serveradmin webmaster@localhost    documentroot /var/www   <directory />      options followsymlinks      allowoverride none   </directory>   <directory /var/www/>     options followsymlinks multiviews             directoryindex index.html     allowoverride none     order allow,deny     allow   </directory>    ... </virtualhost> 

but directs (port 80,8000,8080,etc) https.

what rewriterule or rewritecond can use direct http traffic port 80 https , leave others alone?

i'm open suggestions... if rewriterule not correct path. thanks.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -