Re: Redirect https' 404 to http...

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

 



From: Igor Galić <i.galic@xxxxxxxxxxxxxx>

> I'd use mod_macro for that:
>   http://www.cri.ensmp.fr/~coelho/mod_macro/
> <Macro SSLVhost $name
> <VirtualHost *:443>
>   ServerName $name
>   DocumentRoot /srv/web/$name
>   SSLStuff /some/place/$name
>   ErrorDocument 404 http://$name/not404
> </VirtualHost>
> </Macro>

mod_macro looks nice; but I do not think it would solve my problem.
Using ErrorDocument would only work if I could use a variable holding the requested URI...
  ErrorDocument 404 http://host/%{REQUEST_URI}
I think that the only solution with ErrorDocument would be calling a script that would return a 301

Thx,
JD

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