Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a server (and a static IP), but not have a domain yet. But i still want to use it with IP address and upload my web page.

When I write the IP address, I am redirected to a cgi-sys/defaultwebpage.cgi default website page.

How can I change it, so it will read /var/www/html/index.php as default.

Server is Centos 6.0 and I fave Cpanel

Any help would be appreciated

share|improve this question

1 Answer

up vote 0 down vote accepted

Here is what you can do.

  • Backup your current defaultwebpage.cgi

  • Overwrite the above file, with the following 2 lines.

     #!/usr/bin/perl
     print "Location: http://IP_ADDR/index.php\n\n";
    
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.