|
Home > Archive > Apache Server configuration support > October 2006 > Virtual host configuration help
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Virtual host configuration help
|
|
| greg.merideth@gmail.com 2006-10-27, 1:17 pm |
| I'm setting some machines for a client and they've asked me to
configure a linux box for basic storage. I installed FC5 and have
samba working but ran into an issue with apache. I've never setup an
apache box beyond the simple one site/machine as I do most of my work
in Windows but I'm getting more into linux on a daily basis. I moved
awstats 6 to the Linux machine off the windows box and I cannot get the
virtual web to work.
Using Linux fedora.redhat.com 2.6.15-1.2054_FC5 #1 with Apache/2.2.0
[Feb 11 2006 18:10:38]
The problem I have is both the default site and virtual site are
showing the same "welcome to Apache" screen when viewed in a browser.
Hosts file has both:
192.168.10.52 fedora.ava.local
192.168.10.52 awstats.ava.local
And the apache config has:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /var/www/html/
ServerName fedora.ava.local
ErrorLog logs/fedora-error_log
CustomLog logs/fedora-access_log common
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/awstats-6.5/wwwroot/
ServerName awstats.ava.local
ErrorLog logs/awstats-error_log
CustomLog logs/awstats-access_log common
</VirtualHost>
Testing virtual host settings shows:
VirtualHost configuration:
192.168.10.52:80 is a NameVirtualHost
default server fedora.ava.local
(/etc/httpd/conf/httpd.conf:986)
port 80 namevhost fedora.ava.local
(/etc/httpd/conf/httpd.conf:986)
port 80 namevhost awstats.ava.local
(/etc/httpd/conf/httpd.conf:995)
Syntax OK
Is it the "default" part that prevents me from getting to the awstats
virtual site? do I need to remove all of the "base" stuff that comes
in httpd.conf? I've tried moving the config sections to their own
files in /conf.d but the same thing happens. Accessing
awstats.ava.local and fedora.ava.local both show the same exact page.
| |
| Davide Bianchi 2006-10-27, 1:17 pm |
| On 2006-10-27, greg.merideth@gmail.com <greg.merideth@gmail.com> wrote:
> The problem I have is both the default site and virtual site are
> showing the same "welcome to Apache" screen when viewed in a browser.
The 'welcome' to apache page is automatically showed in response to a
403 error (no default index page present) unless you disabled the 'welcome'
configuration that came with Apache 2.x
See /etc/httpd/conf.d/welcome.conf
> Is it the "default" part that prevents me from getting to the awstats
The 'default' part shows you which site is showed if Apache can't
understand which Vhost you want, the 'default' is the first vhost
defined.
> files in /conf.d but the same thing happens. Accessing
> awstats.ava.local and fedora.ava.local both show the same exact page.
Do you have an index.html in awstats? How do you access it?
Davide
--
Networks are like sewers: my job is to make sure your data goes away when
you flush, and to stop the rats climbing into your toilet through the pipes.
-- Tanuki describes network administration
| |
| greg.merideth@gmail.com 2006-10-27, 7:16 pm |
| Looks like that was the issue. When we copied the files from the
windows machine to the linux box I forgot we had renamed the index.php
to index.aspx for some pre-server side processing.
Always the small things.
Thanks.
Davide Bianchi wrote:
> On 2006-10-27, greg.merideth@gmail.com <greg.merideth@gmail.com> wrote:
>
> The 'welcome' to apache page is automatically showed in response to a
> 403 error (no default index page present) unless you disabled the 'welcome'
> configuration that came with Apache 2.x
> See /etc/httpd/conf.d/welcome.conf
>
>
> The 'default' part shows you which site is showed if Apache can't
> understand which Vhost you want, the 'default' is the first vhost
> defined.
>
>
> Do you have an index.html in awstats? How do you access it?
>
> Davide
>
> --
> Networks are like sewers: my job is to make sure your data goes away when
> you flush, and to stop the rats climbing into your toilet through the pipes.
> -- Tanuki describes network administration
|
|
|
|
|