close
Warning:
Can't synchronize with repository "(default)" (/usr/svn/silverfile does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Jun 25, 2010, 5:34:22 PM (13 years ago)
- Author:
-
greg
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v71
|
v72
|
|
293 | 293 | }}} |
294 | 294 | |
| 295 | '''Redirect port 80 traffic to secure port 443''' |
| 296 | Save the original default http file: |
| 297 | {{{# cd /etc/apache2/site-available |
| 298 | # mv default default.orig |
| 299 | }}} |
| 300 | |
| 301 | Creat a new default file: |
| 302 | {{{#vim default}}} |
| 303 | |
| 304 | Insert: |
| 305 | {{{<VirtualHost *:80> |
| 306 | RewriteEngine on |
| 307 | RewriteCond %{SERVER_PORT} ^80$ |
| 308 | RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R] |
| 309 | RewriteLog "/var/log/apache2/rewrite.log" |
| 310 | RewriteLogLevel 2 |
| 311 | </VirtualHost>}}} |
| 312 | |
| 313 | Save and exit. It's a good idea to double check the symbolic link to 000-default in /etc/apache2/sites-enabled |
295 | 314 | |
296 | 315 | == 3Ware RAID monitor == |