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.

New Account Setup Questions

Discussion in 'General Discussion' started by pokermagic, Apr 11, 2012.

  1. pokermagic

    pokermagic Member

    Joined:
    Sep 1, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I've had WHM and our current account installed for about a year. Now I am adding another domain so created a new account.

    I use Resin as our primary JAVA app server on our current Domain. When I create the new account what is the best way to gain access to this container? Or do i need to install a separate instance of this?

    Also on the Apache side... it looks like directory listing is turned on. How do i turn it off on this account. I just want to make sure i'm not messing anything up on my current account.

    Thanks in advance.

    JR
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    If you have installed Resin on your main server then you do not need to do any extra settings to use it for your another domain. You should be able to use it. However, if you have installed it for particular account then I think you need to follow same steps to use it for another account.

    You can turn off directory browsing for particular account, go to cPanel of account -> Index Manager -> No indexes -> Save. You can also do this from .htaccess file by adding following line:

    IndexIgnore *

    To disable globally:

    You will find the apache configuration file here:

    /usr/local/apache/conf/httpd.conf

    Using an editor like vi (OR any other you prefer) , edit the httpd.conf file and find a line like this:

    Options All Indexes FollowSymLinks MultiViews

    To disable directory browsing, remove the line "Indexes" and leave the line like this:

    Options All FollowSymLinks MultiViews

    Restart your apache webserver and thats it.

    To restart use /etc/init.d/httpd restart

    Note: Please carefully follow above steps, if you will make any mistake then your apache may stop working.
     
    #2 thewebhosting, Apr 11, 2012
    Last edited: Apr 11, 2012
Loading...

Share This Page