rewrite to 443..please help me

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 
I need your help to solve my Apache issue. 
I have a php website that runs correctly on port 80, on my apache server.
Customer asked me to add a protected area to web site, a subfolder whose
pages must be under ssl.

So my site is

http://www.mysite.it

and I need, when I click on "protected area" button to move to

https://www.mysite.it/protected

I created certificate and configured it and configured it in apache
configuration file (no in virtual host).

The issue is when I click on 

https://www.mysite.it/protected

and error appears.

Maybe I missed something, due my inexperience.
Could you help me?


This is my virtual host: 

<VirtualHost IP:80> 
        ServerName www.mysite.it 
        DocumentRoot /var/www/www.mysite.it 
        RewriteEngine on
        RewriteLog "log/rewrite.log"
        RewriteLogLevel 0
        RewriteRule ^/protected/(.*) https://www.mysite.com/protected:443/$1
[R=301,L]
        <Directory /var/www/www.mysite.it> 
                AllowOverride FileInfo 
        </Directory> 
</VirtualHost>

Could anyone help me with simple code? 

Thanks

-- 
View this message in context: http://www.nabble.com/rewrite-to-443..please-help-me-tp24629942p24629942.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux