| Article: |
Location, Location, Location: Tips for Storing Web Site Files | |
| Subject: | Name-based virtualhosting made easy | |
| Date: | 2003-11-15 13:18:54 | |
| From: | anonymous2 | |
|
Response to: Name-based virtualhosting made easy
|
||
|
i spent days messing with "httpd.conf" and "hosts" trying to get virtualhosts to work. i read this article, the apache manual and other tutorials. everyone recommended different stuff; nothing worked.
|
||
Showing messages 1 through 2 of 2.
-
Name-based virtualhosting made easy
2004-02-17 21:27:14 rmcgonegal [Reply | View]
-
Name-based virtualhosting made easy
2005-08-18 09:04:57 clussman [Reply | 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. :)





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.