Trivially, you can wrap each Virtual host section in its own IFDefine
bracket, and append that to httpd.conf.

More tidily, you can open a temp file, prefix it with IFDefine, write all
the VHost data to it, close it with /IFDefine, and append that to
httpd.conf.

Does it matter if there are successive Vhost sections relating to the same
subdomain? If so, you may need to rewrite the httpd.conf file.


- Roger -
----- Original Message -----
From: "Darryl Schnell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 31, 2001 1:02 PM
Subject: Question regarding placing specific items with a file


I am starting to look into the option of an online signup form that will
create website space within my web network but I am not sure how to
accomplish this one part and would like to ask the list for some
suggestions/advice. To further help your answers I cannot get additional IP
assignments so I must use a virtual hosts option to perform this task.

I have an httpd.conf file that my Apache webserver uses. Within this config
file there are the options for virtual hosts which are differnt websites all
using the same config/http server. There is a specific section in the file
that looks like this:

<IFDefine>

<Virtual Host>
Information
</Virtual Host>

</IFDefine>

What I need is to be able to put the Virtual Host information for each site
between the IFDefine statments but I am not sure how to accomplish it. I
know that if it didn't have to be between the IFDefine statements I could
just do a >> option, but unfortuantly I cannot.

Any help anyone can recommend I would appreciate your assistance.

Thanks,
Darryl


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to