Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007
    Location
    SLC UT USA
    Posts
    39

    Virtual Host Redirects all requests

    I just went with Steadcom's VPS and they are great. I am setting things up and it's going pretty well, I have to dust off my linux/server knowledge that I haven't used in a couple of years.

    Anyway I'm creating a virtual host.. I will have about 10 in the end, but right now I only have one domain IP Pointing to my new server. My registrar is NamesDirect.

    When I create the virtual host, I can no longer access subdirectories directly. My Virtual Host directory is, say, /var/www/html/newdir

    If I try to reach http://www.domainname.com which has been configued as a virtual host, that comes up correctly from the directory /var/www/html/newdir and works fine.

    But if I try to reach http://myipaddress/newdir I get a 404 page not found error. Looking at the log, it's trying to reach /var/www/html/newdir/newdir so it's putting in the virtual host redirect even for just hitting the subdirectory directly.

    Is this normal? Do I have something configured wrong? I have another domain that I have changed to IP Point to the VPS but until it propogates I won't be able to test having 2 virtual hosts.

    Also.. I have not set up DNS on my VPS. I don't really understand it, and IP Pointing has always worked for me when I ran my own server form my home so I was just going to do that. But I wonder if this could be one of the problems.

    Thanks!
    Last edited by Cynthia Blue; 12-31-2007 at 12:44 PM.

  2. #2
    Join Date
    Dec 2007
    Location
    SLC UT USA
    Posts
    39
    Figured it out. Traced it back to mod_rewrite not working properly... I had to change AllowOverrides in htppd.conf to ALL.


Posting Permissions

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