[BlueOnyx:16002] Re: Default Site
Steffan Noord
mailinglist at tikklik.nl
Mon Sep 22 06:03:35 -05 2014
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
More information about the Blueonyx
mailing list