| Article: |
Location, Location, Location: Tips for Storing Web Site Files | |
| Subject: | Name-based virtualhosting made easy | |
| Date: | 2003-05-16 18:48:19 | |
| From: | opatrickly | |
|
I have written a script that I use to add name-based virtualhosts to my Mac OS X machine. It uses NetInfoManager to add the name into the system, and Apache's NameVirtualHost directive. All the virtualhosts the scripts add are strictly local, so you don't have to worry about others snooping about your work. If you care to try it out, you can read more about it here: http://patrickg.com/virtualhost
|
||
Showing messages 1 through 3 of 3.
-
Name-based virtualhosting made easy
2003-11-15 13:18:54 anonymous2 [View]
-
Name-based virtualhosting made easy
2004-02-17 21:27:14 rmcgonegal [View]
Actually I found using BBEdit to be much easier. I've used it thousands of times whereas I've only used Netinfo Manager twice.
In BBEdit you use the "open hidden files" command. That makes all of the files visible in the open dialogue box. Set it to columns view and it is easy to navigate to /etc/httpd. And when you go to save changes on a file such as httpd.conf, BBEdit is smart enough to temporaily elevate your rights to sudo level by asking for the password.
In my documents folder, I made a backup copy of httpd.conf and hosts. Then I created aliases to the originals. -
Name-based virtualhosting made easy
2005-08-18 09:04:57 clussman [View]
A little late, but I just wanted to add an alternative here that seems simpler to me:
I always keep a Terminal window open. At the command line you can type "bbedit /etc/httpd/httpd.conf" or "bbedit /etc/hosts".
Of course this assumes you're using BBEdit. :)



patrick's solution to use netinfo manager and save other directives in "/etc/httpd/virtualhosts/" is simple and elegant. using his shell script makes it even easier.
check out his site.
thanks, patrick.