The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can I do a IF/Then in the apache template? Or a replace? To change the ip variable?

Discussion in 'EasyApache' started by CrewXp, Apr 22, 2006.

Thread Status:
Not open for further replies.
  1. CrewXp

    CrewXp Active Member

    Joined:
    Nov 12, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    I want to put a

    If %ip% = 69.62.234.12 Then %ip%=192.168.1.12
    If %ip% = 69.62.234.13 Then %ip%=192.168.1.13
    If %ip% = 69.62.234.14 Then %ip%=192.168.1.14
    If %ip% = 69.62.234.15 Then %ip%=192.168.1.15

    in the /usr/local/cpanel/etc/httptemplates/apache1/default

    file

    I know, that's not how to do it, but its just an example. Is there any way to put that in there? So I can call <VirtualHost %ip>, it will put that instead?

    Or use a replace command on %ip% to replace "69.62.234" with "192.168.1"???

    thanks!!
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
Loading...
Thread Status:
Not open for further replies.

Share This Page