Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 6 of 6

This is a discussion on cPanel Default page in the VPS & Dedicated forum
Well I have a question about my cPanel VPS... On my cPanel VPS, when you visit hostname.domain.com it displays the cPanel default page... I would ...

  1. #1
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204

    cPanel Default page

    Well I have a question about my cPanel VPS...

    On my cPanel VPS, when you visit hostname.domain.com it displays the cPanel default page... I would like to change that to a server status script instead, however, I cannot figure out where the directory is that I would need to put those files in...

    I was able to do this on my Interworx VPS quite easily since the default page is in /var/www/htdocs


    Any ideas on what directory to use?
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  2. #2
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    quick way to do it:

    Edit /etc/httpd/conf/httpd.conf, add the following:

    Code:
    <VirtualHost your.main.vps.ip.address>
       BytesLog domlogs/hostname.domain.com-bytes_log
       ServerName hostname.domain.com
       DocumentRoot /usr/local/apache/hostnamedomaincom
    </VirtualHost>
    Create the directory /usr/local/apache/hostnamedomaincom

    Add anything you like in there, it will be your document root for your vps.

    run "service httpd restart" to get apache reloaded. If you run a very recent version of apache then "service httpd reconfigure" will also work and won't stop apache from serving pages at the same time.

  3. #3
    all about nothing! Frank Broughton's Avatar
    Join Date
    Jan 2006
    Posts
    2,158
    /usr/local/apache/htdocs/ is where mine is located

  4. #4
    all about nothing! Frank Broughton's Avatar
    Join Date
    Jan 2006
    Posts
    2,158
    Figures it took me too long to find it and Thisistit would beat me to it. All the help I received lately and finally I think I can help someone else... haha

  5. #5
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    Thanks Thisisit and Frank! I just tried Franks suggestion and it worked great! (minus the internal server error issue, which i was able to solve)
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  6. #6
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    Ok so Frank your idea worked at first and then it generated an unstoppable Internal Server Error and I couldnt figure it out so I handed it off to support and they failed to understand what I was saying and kept deleting my files in that directory and saying I can view a phpinfo() page at a different URL on my VPS which was not at ALL what I was trying to do, I did not want a phpinfo() page but a status script...

    I went back and tried Thisisit's suggestion and voila! It works great!

    Thanks for your help Thisisit & Frank!

    -Daniel
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •