[ic] virtual hosts

Blair Campbell interchange-users@icdevgroup.org
Wed Sep 18 12:55:01 2002


I have virtual hosts running on my apache server on RedHat 7.2. I have tried
my document root as /var/www/cgi-bin/sam with index.html as the directory
page. When I go to my url the site does not come up. My other virtual hosts
work for static pages. I have tried other configurations with no results.
Any ideas?

O ya the site does come up with the below typed in.
www.drinkandshrinknow.com/cgi-bin/sam/index.html
www.drinkandshrinknow.com/cgi-bin/sam/admin/index.html
I restart apache after I make changes to the virtual hosts.

I don't see how I can set my root for virtual servers without the /var/www/

here is my file setup
Moving link program to /var/www/cgi-bin/sam.................done.
Copying share/ files to /var/www/html.......................done.
Moving HTML files to /var/www/html/sam......................done.
Moving image files to /var/www/html/sam/images..............done.

----- Original Message -----
From: "John Allman" <allmanj@houseofireland.com>
To: <interchange-users@icdevgroup.org>
Sent: Wednesday, September 18, 2002 1:25 AM
Subject: Re: [ic] virtual hosts


> Blair Campbell wrote:
>
> >I want to set up my virtual host to open the sam catelog. I have tried as
my
> >root directory /var/www/cgi-bin/sam and I go to the url and I get page
> >cannot be displayed but if I type in the server ip with
> >/cgi-bin/sam/index.html the site comes up.
> >
> >any ideas
> >
> >
> >_______________________________________________
> >interchange-users mailing list
> >interchange-users@icdevgroup.org
> >http://www.icdevgroup.org/mailman/listinfo/interchange-users
> >
> >
> Both your images not there and your index page sound like web server
> configuration issues. If you're using apache, you probably want to set
> the DirectoryIndex for your site to point to the page you want.
>
> DirectoryIndex /cgi-bin/sam (i think this syntax is right)
>
> you'll want to undo the change you mentioned about setting your root
> directory to cgi-bin/sam first.
>
> As for the images - check if you have something like
> allow from localhost
> instead of
> allow from all
>
> this is just a shot in the dark though. Both problems are almost
> definitely your web server configuration though.
>
> John
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users