setenv variables in redirect-URLs?

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

 



Hi,

we have hundreds of 301 redirects in our httpd configuration. To keep the manual configuration between stages as low as possible I tried to work with variables.

Example:
Redirect 301 /something http://dev-stage1.domain.com/new/something

I want to replace "dev-stage1.domain.com" by a variable that is set by SetEnv (or SetEnvIf).
This is not working and I couldn't find a working solution so far:

SetEnv STAGE dev-stage1.domain.com
Redirect 301 /something http://%{STAGE}/new/something

%{STAGE} is not replaced.

Any ideas?
Any hints are very much appreciated.

--
Mit freundlichen Grüßen

Arndt Roth

Application Management IT-Produktion

Immobilien Scout GmbH
Andreasstraße 10
10243 Berlin

Fon  +49 (0)30 24301-1610
Cell +49 (0)172-3921862

arndt.roth@xxxxxxxxxxxxxxxxxxxx
----------------------------------------------------------
Immobilien Scout GmbH
Beirat: Dr. Martin Enderle (Vorsitzender)
Geschäftsführer: Dirk Hoffmann, Marc Stilke (Sprecher)
Handelsregister: Amtsgericht Charlottenburg, HRB 69108
Sitz der Gesellschaft: Berlin
----------------------------------------------------------

http://www.immobilienscout24.de
Der Marktführer: Deutschlands größter Immobilienmarkt


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