VH Apache restart
Posted by: yfastud (72.236.169.---)
Date: May 17, 2006 07:48PM

Hi,
I'm using VH for a while and wonder is there anyway to modify VH without restart Apache?
Thanks a million in advance

Options: ReplyQuote
Re: VH Apache restart
Posted by: TwistedChaos (---.rochester.res.rr.com)
Date: May 18, 2006 03:09AM

no you have to restart apache for it to reread the config and register the new host



A Massive Heart Attack = Computer Crash sad smiley

I am a member of CAF -> Computer Addicts Forever smiling smiley

Options: ReplyQuote
Re: VH Apache restart
Posted by: yfastud (72.236.169.---)
Date: May 18, 2006 03:46PM

How about Dynamic Virtual Host? Anyone has any idea?

Here is what I found:

"The basic idea is to replace all of the static <VirtualHost> configuration with a mechanism that works it out dynamically. This has a number of advantages:

1. Your configuration file is smaller so Apache starts faster and uses less memory.
2. Adding virtual hosts is simply a matter of creating the appropriate directories in the filesystem and entries in the DNS - you don't need to reconfigure or restart Apache."

Read more in here:

[httpd.apache.org]

Hope this help ;-)



Post Edited (05-18-06 16:00)

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: VH Apache restart
Posted by: TwistedChaos (---.rochester.res.rr.com)
Date: May 19, 2006 03:07PM

yes it is possible but not necessarily the best
if you wish to do such a thing....
follow these simple steps...

1.) Place this in your httpd.conf

# get the server name from the Host: header
UseCanonicalName Off

# this log format can be split per-virtual-host based on the first field
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 C:/wamp/www/%0
VirtualScriptAlias C:/wamp/www/%0/cgi-bin

2.) Edit the above for you server and your information
3.) Make sure the mod_vhost_alias module is enabled

save and restart for the last time

now make sure your directories are created properly for each domain
example
for the domain : this-domain.com
c:/wamp/www/this-domain.com
c:/wamp/www/this-domain.com/cgi-bin

then your all set...



A Massive Heart Attack = Computer Crash sad smiley

I am a member of CAF -&gt; Computer Addicts Forever smiling smiley

Options: ReplyQuote


Sorry, only registered users may post in this forum.