I tried the suggestion and actually I was able to do something.... but something still does not work. What I wish to do is:
* to have a virtual host for "Localhost", pointing to my root
directory /var/www/html
* to have a virtual jost for "www.mydomain.com", pointing to
/var/www/mydomain
* to have a virtual host for "test.mydomain.com", pointing to
/var/www/mydomain2
and, other ways to access the same machine should behave the same as
"localhost".
What I saw in an experiment was that each *.mydomain.com was redirected
to test.mydomain.com.
Maybe I have also to use some other config parameter in commonhttpd.conf....
Any idea?
BTW, I have the SAME IP address for all domains and this address is
DCHPed by my DSL provider.
Thanks a lot indeed. Best regards
/stefano
Todd Lyons wrote:
>Stefano Pogliani wrote on Tue, Oct 01, 2002 at 12:19:34AM +0200 :
>
>
>>Todd,
>>
>> thanks for this reply.
>>How to "enable" any of these examples (after, of course, the appropriate
>>tailoring) in the standard Apache config?
>>I am used to modify "commonhttpd.conf". How to make it using the
>>vhosts.conf ?
>>
>>
>
>By default it will read that file. From httpd.conf:
>
>###
>### Virtual Hosts
>###
># We include different templates for Virtual Hosting. Have a look in the
># vhosts directory and modify to suit your needs.
>Include conf/vhosts/Vhosts.conf
>#Include conf/vhosts/DynamicVhosts.conf
>#Include conf/vhosts/VirtualHomePages.conf
>
>Blue skies... Todd
>
>
smime.p7s
Description: S/MIME Cryptographic Signature
