Re: Redirecting to internal server

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

 



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@xxxxxxxxxxxx
>      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@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