Try removing the slash after the DocumentRoot

Jonathan Nichols 提到:

> Yes, I've Googled. Yes, I've checked the FAQ. I even searched gmane
> for a while.
>
> I'm having trouble containing SM within https. What I'm trying to do
> should be fairly simple.
>
> Here's the relevant portions of ssl.default-vhost.conf:
>
> <VirtualHost _default_:80>
> SSLEngine off
> </VirtualHost>
>
> ##
> ## SSL Virtual Host Context
> ##
>
> <VirtualHost _default_:443>
>
> # General setup for the virtual host
> DocumentRoot "/var/www/localhost/htdocs/webmail/"
> ServerName postal.****.com
> ServerAdmin [EMAIL PROTECTED]
> ErrorLog logs/ssl-error_log
> TransferLog logs/ssl-access_log
>
> # SSL Engine Switch:
> # Enable/Disable SSL for this virtual host.
> SSLEngine on
>
> I tried an .htaccess file:
>
> DirectoryIndex index.php
>
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteCond %{SERVER_PORT} !^443$
> RewriteRule ^(.*)$ https://%{SERVER_NAME}/webmail/$1 [L,R]
> </IfModule>
>
> .... but it's not working. I can go to https://postal.****.com - the
> login window comes up. I type in username & password, and hit return.
> Then I get this:
>
> Not Found
> The requested URL /src/webmail.php was not found on this server.
>
> Apache/1.3.29 Server at postal.*****.com Port 80
>
> It tried to use plain http and not https!
> http://postal.*****.com/src/webmail.php is what appears in the
> location bar.
>
> If I manually add the "s" to "http" in the location bar and hit
> return, then it brings up my mail and everything appears to function
> as it should.
>
> But getting from login window -> mail while remaining on HTTPS just
> isn't working.
>
> I need to have *everything* in HTTPS because I have been directed to
> cut off inbound HTTP to the machine and have only HTTPS open to the
> outside world.
>
> How can I do this? Where am I going wrong?
>
> Logs for the HTTP side show:
> [Thu May 20 17:58:02 2004] [error] [client 192.168.20.1] File does not
> exist: /var/www/localhost/htdocs/src/webmail.php
> [Thu May 20 18:01:05 2004] [error] [client 192.168.20.1] File does not
> exist: /var/www/localhost/htdocs/src/webmail.php
> [Thu May 20 18:03:13 2004] [error] [client 192.168.20.1] File does not
> exist: /var/www/localhost/htdocs/src/webmail.php
>
> Logs on the HTTPS side show:
> 192.168.20.1 - - [20/May/2004:18:03:04 -0700] "GET /src/login.php
> HTTP/1.1" 200 2221
> 192.168.20.1 - - [20/May/2004:18:03:13 -0700] "POST /src/redirect.php
> HTTP/1.1" 302 5
> 192.168.20.1 - - [20/May/2004:18:03:13 -0700] "GET /src/webmail.php
> HTTP/1.1" 200 444
>
> Help! :(
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle
> 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> -- 
> squirrelmail-users mailing list
> List Address: [EMAIL PROTECTED]
> List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
> List Info:
> https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
>


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to