Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    156
    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,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice