New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
https://httpd.apache.org/docs/2.4/vhosts/mass.html
do you have 150 sites in /home/wilbo/ directory(with domain as subdirectory name)?
This might help you - https://httpd.apache.org/docs/2.4/rewrite/vhosts.html
Yes
Jonchun's is the proper answer, but for the terminally lazy:
for n in domainX; do sed s,%%placeholder%%,$n,g << templatefile >> path/to/virtualhosts_config/$n.conf; done
I am not sure if there is any script available. but mod_vhost_alias can do the job. I modified an example from documentation for your scenario:
explanation: Request for www.example.com will be served by /home/wilbo/www.example.com
OK, I'll give that a shot
I appreciate all the help.