[Lula] Multiple Domains - Apache
Sako Varozian
sakogti at hotmail.com
Wed Apr 30 16:27:31 EDT 2008
Please excuse me, the preceding e-mail was directed to you Deepan :(
> Date: Wed, 30 Apr 2008 12:45:55 -0700
> From: cheeto at shaolinux.org
> To: lula at lula.org
> Subject: Re: [Lula] Multiple Domains - Apache
>
> Sako,
> I'm not the one having issues, in fact I just said the same thing you
> said only I was talking to the original author.
>
> Sako Varozian wrote:
> > Hi Cheeto,
> > I just got done getting virtual hosting (multiple domains on my one webserver). I noticed that you do not have the line ServerAlias domaina.com and ServerAlias domainb.com. This is important as I see that you are going to http://domainb.com no www. in the front of domainb.com. This may be your problem. I can also send you my sites-available files i have set up for apache. Let me know if you still need these, I will be able to send them later today when I get home.
> >
> > Good Luck,
> > Sako
> >
> >
> >
> >
> >> Date: Tue, 29 Apr 2008 05:32:59 -0700
> >> From: cheeto at shaolinux.org
> >> To: codeshepherd at gmail.com; lula at lula.org
> >> Subject: Re: [Lula] Multiple Domains - Apache
> >>
> >> That's because you going to http://domainb.com doesn't match any of your
> >> vhost definition so it defaults to the default vhost which in this
> >> configuration is www.domaina.com. You need to specify ServerAlias for
> >> each vhost.
> >>
> >> so for www.domaina.com:
> >> ServerName www.domaina.com
> >> ServerAlias domaina.com
> >>
> >>
> >> for www.domainb.com:
> >> ServerName www.domainb.com
> >> ServerAlias domainb.com
> >>
> >> -Michael Hsu
> >>
> >> Deepan wrote:
> >>
> >>> Hi All,
> >>> I am serving two domains from the same machine
> >>> using Apache. I want www to be used in both of the
> >>> domains, hence I redirect urls without www to
> >>> appropriate urls with www. I have the following
> >>> configuration in httpd.conf to achieve this.
> >>>
> >>>
> >>>
> >>> NameVirtualHost *:80
> >>>
> >>> <VirtualHost *:80>
> >>> DocumentRoot /var/www/html/domaina/
> >>> ServerName www.domaina.com
> >>> Options +FollowSymLinks
> >>> RewriteEngine On
> >>> RewriteCond %{HTTP_HOST} ^domaina\.com$ [NC]
> >>> RewriteRule ^(.*)$ http://www.domaina.com$1
> >>> [R=301,L]
> >>> </VirtualHost>
> >>>
> >>>
> >>> <VirtualHost *:80>
> >>> DocumentRoot /var/www/html/domainb/
> >>> ServerName www.domainb.com
> >>> Options +FollowSymLinks
> >>> RewriteEngine On
> >>> RewriteCond %{HTTP_HOST} ^domainb\.com$ [NC]
> >>> RewriteRule ^(.*)$ http://www.domainb.com$1
> >>> [R=301,L]
> >>> </VirtualHost>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> However all requests to http://domainb.com/ gets
> >>> redirected to http://www.domaina.com whereas the
> >>> expected behaviour is to get redirected to
> >>> http://www.domainb.com/ .
> >>> Regards
> >>> Deepan
> >>>
> >>> Photographic Memory Game:
> >>> http://www.photographicmemorygame.com/
> >>> Sudoku Solver: http://www.sudoku-solver.net/
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Lula mailing list
> >>> Lula at lula.org
> >>> http://lula.org/mailman/listinfo/lula_lula.org
> >>>
> >>>
> >> _______________________________________________
> >> Lula mailing list
> >> Lula at lula.org
> >> http://lula.org/mailman/listinfo/lula_lula.org
> >>
> >
> > _________________________________________________________________
> > Back to work after baby–how do you know when you’re ready?
> > http://lifestyle.msn.com/familyandparenting/articleNW.aspx?cp-documentid=5797498&ocid=T067MSN40A0701A
> > _______________________________________________
> > Lula mailing list
> > Lula at lula.org
> > http://lula.org/mailman/listinfo/lula_lula.org
> >
>
> _______________________________________________
> Lula mailing list
> Lula at lula.org
> http://lula.org/mailman/listinfo/lula_lula.org
_________________________________________________________________
Spell a grand slam in this game where word skill meets World Series. Get in the game.
http://club.live.com/word_slugger.aspx?icid=word_slugger_wlhm_admod_april08
More information about the Lula
mailing list