Thread: Apache help

  1. #1
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331

    Apache help

    Ok so heres the low down. I have my computer also as a webserver for my website. Recently i have agreed to host my buddies website also. I set the directories up as this:

    /www - Holds my website, its the root folder.

    /www/Arcadia - Holds all the website files for his site.

    I then setup Apache to use virtual hosting. This works fine for www.wacker7.com which is hosted in the root folder "www". BUT, www.arcadia-studios.com is showing the files from the root folder also. So they both go to www.wacker7.com.

    Now this just means that Apache is not directing his .com into its folder, and i dont know why. Heres the code from apache's config

    Code:
    #
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for requests without a known
    # server name.
    #
    #<VirtualHost *:80>
    #    ServerAdmin [email protected]
    #    DocumentRoot /www/docs/dummy-host.example.com
    #    ServerName dummy-host.example.com
    #    ErrorLog logs/dummy-host.example.com-error_log
    #    CustomLog logs/dummy-host.example.com-access_log common
    #</VirtualHost>
    
    <virtualHost *>
         ServerAdmin [email protected]
         DocumentRoot c:\appserv\www
         ServerName www.wacker7.com
    </virtualHost>
    
    <virtualHost *>
         ServerAdmin [email protected]
         DocumentRoot c:\appserv\www
         ServerName wacker7.com
    </virtualHost>
    
    <virtualHost *>
         ServerAdmin [email protected]
         DocumentRoot c:\appserv\www\Arcadia\index.html
         ServerName www.arcadia-studios.com
    </virtualHost>
    
    <virtualHost *>
         ServerAdmin [email protected]
         DocumentRoot c:\appserv\www\Arcadia\index.html
         ServerName arcadia-studios.com
    </virtualHost>
    .

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Why have you got the \index.html on the arcadia ones?

    I have my virtual hosts set up in their own directories under htdocs, i.e. they are in their own trees under the site Apache root, rather then one being included inside another.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    i use postnuke on wacker7, and he uses html files on arcadia. So the index file in arcadia is his index, mines a index.php not html.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Apache config
    By lruc in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 01-23-2009, 04:41 PM
  2. SOAP/XML Webservices with Apache.
    By adrianxw in forum Tech Board
    Replies: 0
    Last Post: 07-24-2004, 07:36 AM
  3. bandwidth limitations with apache
    By Xterria in forum Tech Board
    Replies: 14
    Last Post: 05-03-2004, 08:44 AM
  4. HELP!!! Apache Problem :(
    By *Michelle* in forum Tech Board
    Replies: 15
    Last Post: 02-16-2003, 02:38 AM
  5. Apache [2.xxx] and PHP [4.xxx]
    By Wondering_Guy in forum Tech Board
    Replies: 12
    Last Post: 01-19-2003, 02:41 PM