Re: a couple questions about virtual hosts in Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Scott:
> Another question.  So is this where I would for example put 
> bugzilla.pilotalk.com or is this only where any thing relating to 
> www.pilotalk.com goes?
> 
> ServerAlias alternatives that will be accepted, even if you rewrite them
> (as your rewrite rule did below).

If a particular virtual server was responding for both
bugzilla.pilotalk.com AND www.pilotalk.com, then one of the alternatives
goes into its aliases, and you don't configure other virtual servers for
the other domain names.

e.g. <VirtualHost *:80>
       ServerName  www.pilotalk.com
       ServerAlias  pilotalk.com  bugzilla.pilotalk.com
       ...[rest snipped for brevity]...
     </VirtualHost>

Alternatively, if you were having different virtual servers responding
to those different domain names, then you'd have completely independent
virtual server configuration sections.

e.g. <VirtualHost *:80>
       ServerName  www.pilotalk.com
       ServerAlias  pilotalk.com
       ...[rest snipped for brevity]...
     </VirtualHost>

     <VirtualHost *:80>
       ServerName  bugzilla.pilotalk.com
       ...[snipped for brevity]...
     </VirtualHost>

Think of the virtual hosts has being completely different computers
running independent web servers.  That's the intention.

-- 
[tim@bigblack ~]$ uname -ipr
2.6.22.1-41.fc7 i686 i386

Using FC 4, 5, 6 & 7, plus CentOS 5.  Today, it's FC7.

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.



-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux