httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simeonidis, Steve" <SteveSimeoni...@ap.spherion.com>
Subject RE: [users@httpd] Virtual Hosting With 2 domains, 1 IP?
Date Fri, 04 Apr 2003 05:59:49 GMT
hhmmm,

You need something like in a simple form

NameVirtualHost your_ip

<VirtualHost your_ip>
    DocumentRoot /var/www/html/<something>
    ServerName www.domain1.com
</VirtualHost>

<VirtualHost your_ip>
    ServerAdmin steves@awebd.com.au
    DocumentRoot /var/www/html/<something>
    ServerName www.domain2.com
</VirtualHost>




Thanks

Steve Simeonidis 
Network Engineer, Spherion Education 
Spherion Group Ltd 
"Making the Workplace Work Better" 
1st Floor, 493 St. Kilda Rd, 
Melbourne VIC 3004, 
Australia 
+61 3 9243 2382 
stevesimeonidis@ap.spherion.com 



-----Original Message-----
From: Marc Boorshtein [mailto:mboorshtein@yahoo.com]
Sent: Friday, 4 April 2003 3:58 PM
To: users@httpd.apache.org
Subject: [users@httpd] Virtual Hosting With 2 domains, 1 IP?


Hello,

I have one server that will have two domains with only 1 IP address.  I
want to use one virtual host to handle mass hosting (server.com), and 1
for administrative functions (server.net).  Here is part of my
httpd.conf file :
UseCanonicalName off

 NameVirtualHost 127.0.0.1

<VirtualHost www.server.net>
        ServerName www.server.net
        DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost *>
        LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
        CustomLog logs/access_log vcommon

        # include the server name in the filenames used to satisfy
requests
        VirtualDocumentRoot /var/www/hosts/%0/docs

        <Location />
         DAV on
        </Location>

</VirtualHost>

If the first <VirtualHost> is there, I only get what would result from
www.server.net.  Any thoughts?

Thanks
Marc Boorshtein


-- 
Marc Boorshtein <mboorshtein@yahoo.com>

The information contained in this email and any attachments to it:

(a) may be confidential and if you are not the intended recipient, any interference with,

use, disclosure or copying of this material is unauthorised and prohibited; and

(b) may contain personal information of the recipient and/or the sender as defined 
under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to 
collect, hold and use such information and any personal information contained in a 
response to this email, for any reasonable purpose in the ordinary course of 
Spherion's 
business, including forwarding this email internally or disclosing it to a third party. All

personal information collected by Spherion will be handled in accordance with 
Spherion's Privacy Policy. If you have received this email in error, please notify the 
sender and delete it.

(c) you agree not to employ or arrange employment for any candidate(s) supplied in 
this email and any attachments without first entering into a contractual agreement with 
Spherion. You further agree not to divulge any information contained in this document 
to any person(s) or entities without the express permission of Spherion.



Mime
View raw message