Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    2

    Default Domains always redirect to DocumentRoot

    Hello, I'm having trouble getting domains to redirect to the proper directory. Everything is pretty much the default and it seems that everything is in order except for this huge problem. My dns servers are set up correctly and I have played around with this thing for about an hour and still to no avail. Here's my httpd.conf:

    ------------------------------------------------------------------
    NameVirtualHost 208.180.154.91:80

    <VirtualHost 208.180.154.91>
    ServerAlias www.jonnyhost.com
    ServerAdmin webmaster@jonnyhost.com
    DocumentRoot /home/jonnyhos/public_html
    ServerName jonnyhost.com

    User jonnyhos
    Group jonnyhos
    BytesLog /usr/local/apache/domlogs/jonnyhost.com-bytes_log
    CustomLog /usr/local/apache/domlogs/jonnyhost.com combined
    ScriptAlias /cgi-bin/ /home/jonnyhos/public_html/cgi-bin/
    </VirtualHost>

    -------------------------------------------------------------------------

    this is exacly what whm created when I created my account but it's always going to the success page. Anyone know what I need to do to fix this?

  2. #2
    Member
    Join Date
    May 2004
    Location
    USA
    Posts
    406
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Maybe they hadn't propagated yet. Your domain works fine on my computer.

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    2

    Default hmmmm

    This is strange, I have a gateway that had the http and dns port forwarded to my webserver. Well I tried hooking straight up to the connection and now it works fine. I must be configuring WHM wrong? for the NameVirtualHost and VirtualHost directives do I use my internal IP or my external IP?

  4. #4
    Member
    Join Date
    May 2004
    Location
    USA
    Posts
    406
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Do not private (internal) IPs in CPanel, that will break stuff. Always use your public (external) IP and just use port forwarding. Of course, in the router, port forward to the private IP. Keep in mind that there are many more than just those 2 ports that CPanel needs to work properly. Are you even using CPanel?

Similar Threads & Tags
Similar threads

  1. Redirect https to http for non-ssl enabled domains
    By rkula in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-21-2011, 03:23 PM
  2. SSL /cpanel redirect not working on some domains - Suexec error
    By jonasplus in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-29-2008, 12:57 PM
  3. Addon, Sub Domains and 301 redirect...
    By madtom in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-18-2007, 01:25 PM
  4. DocumentRoot
    By ChrisRiley in forum New User Questions
    Replies: 5
    Last Post: 04-14-2005, 09:35 PM
  5. addon domains redirect to subdomain
    By pphillips in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-27-2004, 06:09 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube