Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This isn't so much of a problem, but would like to know why this happens.

we have a dedicated server running WHM. If I access the server via its IP address directly I am automatically redirected to

http://xx.xxx.xx.xxx/cgi-sys/defaultwebpage.cgi

I know how to edit this page (this isnt the problem)

I'm just curious why I get redirected to this .cgi page, rather than simply remain @

xx.xxx.xx.xxx/ and view my default "landing page", if you like.

What setting could I change so that if anyone visits my server IP, they do not get redirected to xx.xxx.xx.xxx/cgi-sys/defaultwebpage.cgi

For instance if you visit 173.194.37.104 (google), you view the google home page, but URL remains the same.

Hope this makes sense.

thanks

share|improve this question
2  
I get the strangest feeling I've just stepped back into 1994. –  Tom O'Connor Feb 6 '13 at 9:00

1 Answer 1

Not sure if you're still trying to figure this out, but you need to edit your httpd.config. You should be able to find it at the following location if you are on a VPS or dedicated server. /etc/httpd/conf/httpd.config

find where it looks like this. Usually surounded by "do not edit this"

<VirtualHost xxx.xxx.xxx.xxx:80>
    ServerName domain.com
    ServerAlias www.domain.com
    DocumentRoot /home/domain/public_html
    ServerAdmin webmaster@domain.com
    UseCanonicalName Off
    CustomLog /usr/local/apache/domlogs/domain.com combined
    CustomLog /usr/local/apache/domlogs/domain.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
    ## User domain # Needed for Cpanel::ApacheConf
    <IfModule mod_suphp.c>
        suPHP_UserGroup domain domain
    </IfModule>
    <IfModule !mod_disable_suexec.c>
        SuexecUserGroup domain domain
    </IfModule>
    ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/

</VirtualHost>
share|improve this answer

Your Answer

 
discard

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