Done reading? subscribe: To get an automatic feed of all future posts subscribe here.
Link to This Post:
Tags: apache, bash
Posted in Uncategorized | Share/Save/E-mail
Adding Virtual Sites to Apache Easily
Posted by Dan Milstein
- October 7, 2008 at 10:17 am PST | Share/Save/E-mail
I use Apache locally on my Macbook and my Asus EEE (Ubuntu) to develop against.
We still use Apache for some of our webservices here at Lookery; we’re slowly but surely moving to Nginx as our standard. I created a simple shell script to make adding new virtual sites to your development Apache install easier.
The script is called addsite you can find it my personal Git repo here.
Example use:
dcancel@ubuntu:~/$ sudo ./addsite xyz Adding site to /etc/hosts: xyz.local Adding the new site to apache: xyz Site xyz installed; run /etc/init.d/apache2 reload to enable.
* Reloading web server config apache2 [ OK ]
********************************** Visit your new site at: xyz.local **********************************
- David
Recent Posts
“Lookery Resurrected: Audience Networks For Pubs Calling it “Lookery Prequel, Inc.,”…”
“Lookery Resurrected: Audience Networks For Pubs Calling it “Lookery Prequel, Inc.,” Scott Rafer has rolled ...
Posted by Scott Rafer, February 26, 2010 at 6:04 pm“I think we’ve begun to see this already in how Bravo, HBO and others have jumped to partner with…”
“I think we’ve begun to see this already in how Bravo, HBO and others have ...
Posted by Scott Rafer, February 25, 2010 at 2:10 pm“I think we’ve begun to see this already in how Bravo, HBO and others have jumped to partner with…”
“I think we’ve begun to see this already in how Bravo, HBO and others have ...
Posted by Scott Rafer, February 25, 2010 at 2:10 pm