Community Forums
Connect with us on LinkedIn
Closed Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    43

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

    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. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Please try and stick to the original thread:
    http://forums.cpanel.net/showthread.php?t=52151
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Empty @_GET variable = how to change max variable length?
    By JmsCrk in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-09-2011, 10:06 AM
  2. apache SSL_CIPHER_ALGKEYSIZE variable
    By Snowman30 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-03-2010, 12:58 AM
  3. How do I change the template banner?
    By jnlockett in forum New User Questions
    Replies: 1
    Last Post: 08-23-2008, 11:50 AM
  4. How to change default character_set_system variable?
    By the_bobara in forum New User Questions
    Replies: 1
    Last Post: 03-14-2005, 05:34 AM
  5. Whats the easiest way to change the PATH variable serverwide?
    By AbeFroman in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-26-2004, 01:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube