httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Bianchi <dav...@onlyforfun.net>
Subject Re: [users@httpd] Redirecting to internal server
Date Fri, 23 Nov 2007 20:04:50 GMT
Paul Cocker wrote:
> Such a setup already exists (though it's Linux to Linux) so I thought
> this would be relatively easy to do, just copy the existing setup.
> People currently connect to http://www.domain.co.uk/folder/login.html
> and all is well. Searching the httpd.conf file I can find only one
> reference to folder, which is:
> 
> <VirtualHost *:80>
>      ServerAdmin administrator@domain.co.uk
>      ServerName www.domain.co.uk
>      DocumentRoot /var/www/html/domain
>      RewriteEngine on
>      RewriteRule ^/folder(.+)    https://www.domain.co.uk/folder$1 [R,L]
>      RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
>      RewriteRule .* - [F]
> </VirtualHost>

This is not what you are looking for, I think, the rewrite rule merely
redirect you to an https:// server, so you should have anothere
VirtualHost responding on port 443 (https) that actually does the job.

Davide

-- 
It's ten o'clock. Do you know where your source code is?

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message