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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

virtualhost conf file location

Discussion in 'General Discussion' started by Nirjonadda, Nov 23, 2017.

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    524
    Likes Received:
    14
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Please let me know the virtualhost conf file location? I need include one file into a virtualhost.

    Code:
    Include /etc/apache2/custom.d/globalblacklist.conf
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,516
    Likes Received:
    1,616
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    524
    Likes Received:
    14
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Can not adding via Include Files, Getting error after adding virtualhost line.

    Include /etc/apache2/custom.d/globalblacklist.conf


    Code:
    Error:
    The “/usr/sbin/httpd” command (process 30332) reported error number 1 when it ended. Configuration problem detected on line 6837 of file /etc/apache2/custom.d/globalblacklist.conf: order not allowed here --- /etc/apache2/custom.d/globalblacklist.conf --- 6831SetEnvIfNoCase Referer ~*zx6\.ru spam_ref 6832SetEnvIfNoCase Referer ~*zynax\.ua spam_ref 6833SetEnvIfNoCase Referer ~*zytpirwai\.net spam_ref 6834SetEnvIfNoCase Referer ~*zzbroya\.com\.ua spam_ref 6835SetEnvIfNoCase Referer ~*zzlgxh\.com spam_ref 6836# END BAD REFERERS ### DO NOT EDIT THIS LINE AT ALL ### 6837 ===> <=== 6838Order Allow,Deny 6839Allow from all 6840Allow from env=good_bot 6841Allow from env=good_ref 6842 6843 # *********************************************** --- /etc/apache2/custom.d/globalblacklist.conf --- 
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,516
    Likes Received:
    1,616
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you outline the specific steps you are taking, and let us know the specific entries you are using in the custom include file?

    Thank you.
     
  5. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    524
    Likes Received:
    14
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    #5 Nirjonadda, Nov 27, 2017
    Last edited by a moderator: Nov 28, 2017
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,516
    Likes Received:
    1,616
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page