[BlueOnyx:16003] Re: Default Site

Colin Jack colin at mainline.uk
Mon Sep 22 06:37:23 -05 2014


That is the weird thing - it isn't

# LoadModule jk_module modules/mod_jk.so
Include conf.d/*.conf
Include /etc/httpd/conf/vhosts/site1
Include /etc/httpd/conf/vhosts/site4
Include /etc/httpd/conf/vhosts/site5
Include /etc/httpd/conf/vhosts/site6
Include /etc/httpd/conf/vhosts/site8
Include /etc/httpd/conf/vhosts/site10
Include /etc/httpd/conf/vhosts/site11

I normally have a default site at the top of the list on all my other servers and this works fine.
No matter what order I have them on this particular server I get site6.
As you say - the earlier include has sorted it - not sure why I didn't think of that (standing too close to the trees). :)

Thanks again.

Colin


> -----Original Message-----
> From: blueonyx-bounces at mail.blueonyx.it [mailto:blueonyx-
> bounces at mail.blueonyx.it] On Behalf Of Steffan Noord
> Sent: 22 September 2014 12:04
> To: 'BlueOnyx General Mailing List'
> Subject: [BlueOnyx:16002] Re: Default Site
> 
> I think that site6 is the first site you see included in /etc/httpd/conf/httpd.conf
> But /etc/httpd/conf.d/*.conf is included before the vsites so that will work
> always.
> If you have more ips then duplicate it with the other ipnumbers
> 
> Steffan
> -----Oorspronkelijk bericht-----
> Van: blueonyx-bounces at mail.blueonyx.it
> [mailto:blueonyx-bounces at mail.blueonyx.it] Namens Colin Jack
> Verzonden: maandag 22 september 2014 12:21
> Aan: BlueOnyx General Mailing List
> Onderwerp: [BlueOnyx:16001] Re: Default Site
> 
> Worked a treat - thanks Steffan.
> 
> Colin
> 
> > -----Original Message-----
> > From: blueonyx-bounces at mail.blueonyx.it [mailto:blueonyx-
> > bounces at mail.blueonyx.it] On Behalf Of Steffan Noord
> > Sent: 22 September 2014 09:34
> > To: 'BlueOnyx General Mailing List'
> > Subject: [BlueOnyx:15999] Re: Default Site
> >
> > Just add a file to /etc/httpd/conf.d
> > Name it what you want defaultsite.conf
> >
> > You can put there the information in for the first site.
> > Point it to a directory
> >
> > <VirtualHost xxxxx:80>
> > ServerName servername.com.com
> > ServerAdmin admin
> > DocumentRoot /home/defaultside/web
> > ErrorDocument 401 /error/401-authorization.html ErrorDocument 403
> > /error/403-forbidden.html ErrorDocument 404
> > /error/404-file-not-found.html ErrorDocument 500
> > /error/500-internal-server-error.html
> > RewriteEngine on
> > RewriteCond %{HTTP_HOST}                !^x.xx.xxx.xxx(:80)?$
> > RewriteCond %{HTTP_HOST}                !^servername.com(:80)?$ [NC]
> >
> > RewriteRule ^/(.*)                      http://servername.com/$1 [L,R=301]
> > RewriteOptions inherit
> > </VirtualHost>
> >
> > Reload httpd
> >
> >
> >
> > Steffan
> > -----Oorspronkelijk bericht-----
> > Van: blueonyx-bounces at mail.blueonyx.it
> > [mailto:blueonyx-bounces at mail.blueonyx.it] Namens Colin Jack
> > Verzonden: maandag 22 september 2014 9:51
> > Aan: BlueOnyx General Mailing List
> > Onderwerp: [BlueOnyx:15998] Re: Default Site
> >
> > Morning Blues,
> >
> > Is nobody able to give me any idea on this?
> >
> > Thanks
> >
> > Colin
> >
> > > -----Original Message-----
> > > From: blueonyx-bounces at mail.blueonyx.it [mailto:blueonyx-
> > > bounces at mail.blueonyx.it] On Behalf Of Colin Jack
> > > Sent: 20 September 2014 17:07
> > > To: BlueOnyx General Mailing List
> > > Subject: [BlueOnyx:15993] Default Site
> > >
> > > I have one BX server that no matter what I do goes to site6 when I
> > > put in just the IP address in the browser.
> > >
> > > Normally this will default to the first include but no matter how I
> > > order them it goes to site6 ... where else should I look? I like to
> > > have a redirect to an error page.
> > >
> > > Thanks.
> > >
> > > Colin
> > > _______________________________________________
> > > Blueonyx mailing list
> > > Blueonyx at mail.blueonyx.it
> > > http://mail.blueonyx.it/mailman/listinfo/blueonyx
> >
> > _______________________________________________
> > Blueonyx mailing list
> > Blueonyx at mail.blueonyx.it
> > http://mail.blueonyx.it/mailman/listinfo/blueonyx
> >
> > _______________________________________________
> > Blueonyx mailing list
> > Blueonyx at mail.blueonyx.it
> > http://mail.blueonyx.it/mailman/listinfo/blueonyx
> 
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx
> 
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx




More information about the Blueonyx mailing list