re: name based virtual hosting, apache

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

 



On Fri, 2003-08-08 at 15:20, Joshua Legbandt wrote:
> On Thu, 2003-08-07 at 22:25, Iain Buchanan wrote:
[snip]
> You chose a poor example for your demo url,

guilty as charged.  I also have ScriptAlias and various other
directives, but I trimmed them out in my haste...

>  unless you set a new script
> alias for each vhost, they will default to the main script alias. An
> example from the dynamic mass vhost page at apache.org

That example is closer to what I've really got:

------ a real cut'n'paste from my httpd.conf:
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
#    ServerAdmin webmaster@xxxxxxxxxxxxxxxxxxxxxx
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>


<VirtualHost *>
   DocumentRoot /usr/local/www/orpheus.pcorp.com.au/html
   ServerName orpheus.pcorp.com.au

   ScriptAlias /cgi-bin/ "/usr/local/www/orpheus.pcorp.com.au/cgi-bin/"
   <Directory "/usr/local/www/orpheus.pcorp.com.au/html">
      AllowOverride All
      Order allow,deny
      Allow from all
   </Directory>
   ServerSignature email
 	DirectoryIndex  index.php index.html index.htm index.shtml 
	LogLevel  warn
 	HostNameLookups off
</VirtualHost>


<VirtualHost *>
   DocumentRoot /usr/local/www/smsdata.pcorp.com.au/data
   ServerName orpheus-data.pcorp.com.au

   ScriptAlias /cgi-bin/ "/usr/local/www/smsdata.pcorp.com.au/cgi-bin/"
   <Directory "/usr/local/www/smsdata.pcorp.com.au/data">
      AllowOverride All
      Order allow,deny
      Allow from all
   </Directory>
   ServerSignature email
 	DirectoryIndex  index.php index.html index.htm index.shtml 
	LogLevel  warn
 	HostNameLookups off

   Alias /perl "/usr/local/www/smsdata.pcorp.com.au/mod-perl"
   <Directory /usr/local/www/smsdata.pcorp.com.au/mod-perl>
       SetHandler perl-script
       PerlHandler ModPerl::Registry
       PerlOptions +ParseHeaders
       PerlOptions +GlobalRequest
       Options +ExecCGI
       IdentityCheck On

       AllowOverride All
       Order allow,deny
       Allow from all
   </Directory>
</VirtualHost>


<VirtualHost *>
   DocumentRoot /usr/local/www/xmlrpc.rhn.pcorp.com.au/data
   ServerName xmlrpc.rhn.pcorp.com.au

   # nrh-up2date server stuff (not redhat...)
   Alias /XMLRPC/$RHN/redhat-linux-i386-9/getPackageHeader/ "/var/spool/nrh-up2date/9/"
   Alias /XMLRPC/$RHN/redhat-linux-i386-9/getPackage/ "/var/spool/nrh-up2date/9/"
   Alias /XMLRPC/$RHN/redhat-linux-i386-9/listPackages/ "/var/spool/nrh-up2date/9/listPackages/"
   Alias /XMLRPC/$RHN/redhat-linux-i386-9/getObsoletes/ "/var/spool/nrh-up2date/9/getObsoletes/"

   ScriptAlias /cgi-bin/ "/usr/local/www/xmlrpc.rhn.pcorp.com.au/cgi-bin/"
   <Directory "/usr/local/www/xmlrpc.rhn.pcorp.com.au/data">
      AllowOverride All
      Order allow,deny
      Allow from all
   </Directory>
   ServerSignature email
 	DirectoryIndex  index.php index.html index.htm index.shtml 
	LogLevel  warn
 	HostNameLookups off
</VirtualHost>
------

Thanks for your help so far,
-- 
Iain Buchanan <iain@xxxxxxxxxxxxxxxxxxx>


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux