Virtualhost Help

Discussion in 'Site & Server Administration' started by zemond, Mar 21, 2008.

  1. #1
    Gday guys, Im way over my head on this one any help would be good,

    A clients server recently was updated and now all of the sites just redirect to the document root. Well actualy for some crazy reason it redirects to /home/access.php (there is not and never was an access.php)

    the documentroot for apache is /var/www/html

    I had some crazy htaccess stuff going on and I removed it all to make sure that wasnt it.

    inside the docroot is a heap of folders each containing a website

    Im using some crappy westhost application to maintain all the domains

    here is a domain example

    Domain name: oracookbook.com
    Web directory: /var/www/html/oracookbook.com/

    I downloaded a http status anaylser for windows and here is the output

    302 oracookbook.com/ redirectURL: oracookbook.com/home/access.php

    nothing in the htaccess doing that, and plus ill write it out again with its actual file location, and wtf is with this access.php

    302 oracookbook.com/ redirectURL /var/www/html/home/access.php

    it completly ditched the 'oracookbook.com' folder

    I really hope all that makes sense to someone and they can help.

    Cheers
     
    zemond, Mar 21, 2008 IP
  2. kaung

    kaung Twitter @KaungKo

    Messages:
    4,040
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    155
    #2
    can you paste a excerpt for 1 domain name from virtualhost.conf?

    also see what does your httpd.conf say about
    DirectoryIndex (what files are specified?)

    it should mostly be DirectoryIndex index.php index.cgi <all other extensions>
    not just DirectoryIndex access.php
     
    kaung, Mar 22, 2008 IP
  3. zemond

    zemond Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Gday kaung

    Already checked the directoryIndex, and no access.php in it, but here it is

    DirectoryIndex default.htm index.cgi .index.cgi index.html index.htm index.shtml index.sht index.mv index.htmv index.php index.php4 index.php3 index.phtml index.asp default.asp index.pl index.py index.cf

    And here are some virtual hosts

    Here are the top 4 of them, the rest of them all look similiar to the 4th one, just different info ofcourse


    <VirtualHost *>
    </VirtualHost>

    <VirtualHost *>
    ServerName peoplesoftcookbook.com
    ServerAlias www.peoplesoftcookbook.com
    DocumentRoot /var/www/html/peoplesoftcookbook.com
    </VirtualHost>

    <VirtualHost *>
    ServerName srmcookbook.com
    ServerAlias www.srmcookbook.com
    DocumentRoot /var/www/html
    </VirtualHost>

    <VirtualHost *:80>
    ServerName sapcookbook.com
    ServerAlias www.sapcookbook.com
    DocumentRoot /var/www/html/sapcookbook.com
    </VirtualHost>

    I hope this helps


    Cheers,
    -- James
    -- Zemond
     
    zemond, Mar 22, 2008 IP
  4. zemond

    zemond Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    And now that i fully read your post, you said from 'virtualhost.conf' the ones i posted are from httpd.conf.

    As i said im in over my head should I look for virtualhost.conf?
     
    zemond, Mar 22, 2008 IP