![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| file transfer from https to a Unix box | jvjaimes | UNIX for Dummies Questions & Answers | 4 | 07-21-2008 06:54 PM |
| File Upload Performance using IE from Windows to AIX via HTTPS | darontan | AIX | 1 | 10-28-2005 03:04 AM |
| HTTPS connection unix | rkumar28 | UNIX for Advanced & Expert Users | 2 | 06-24-2004 08:20 PM |
| out of inodes on https dev hd | josramon | Filesystems, Disks and Memory | 4 | 11-12-2002 01:08 PM |
| apache-ssl https-problem? | loitschix | UNIX for Dummies Questions & Answers | 1 | 07-23-2001 02:31 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Implement https on apache 2.0.55
I have been trying to implement https auto-redirect for a particular links. I have three configuration file /etc/apache2/apache2.conf, /etc/apache2/sites-available/default, and /etc/apache2/sites-available/ssl. In /etc/apache2/sites-available/default file I added following script
<IfModule mod_proxy.c> ProxyRequests Off RewriteEngine on # send all http to https RewriteCond %{HTTPS} !=on RewriteRule (.*)$ https://myhost.edu/~userna/link.php/$1 [R] </IfModule> But it is not working. Can somebody tell me what am I missing? Thanks in advance. |
|
||||
|
HTTPS redirect on apache
mod_proxy.c is located under directory /usr/lib/apache2/modules/. I assume that means it is enabled.
My second try. I added following syntax on the bottom of file, /etc/apache2/apache2.conf RewriteEngine On RewriteCond %{SERVER_PORT} !443 RewriteRule (.*) https://mylink.edy/~username/login.php/$1 [L,R] It is still not working. Can somebody tell me what modules do I need and how I enable them? |
|
|||||
|
Quote:
Quote:
Are you sure SSL is enabled?? Try this: Code:
RewriteRule ^fubar$ http://www.unix.com [R] Now reload the config, visit your server's address with "fubar" as the destination. If you don't get redirected to The UNIX and Linux Forums - Learn UNIX and Linux from Experts, then it's possible that portion of the configuration is never being hit. One reason can be that your config has VirtualHosts and you are visiting such a VirtualHost which somehow overrides the RewriteEngine settings. |
|
||||
|
Yes. SSL is enabled. I can browse site using http and https since root directory set for both are same. Biggest confusion is which file do I use to configure auto-redirect. I using this link for reference.
AFP548 - Redirect http to https |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|