mac osx 10.3 virtual host on apache

Hi EE,

I'm pretty new to mac osx.  I'm having no luck setting up virtual hosts in my httpd.conf file.

here's what i'm trying to use to set a virtual host:

NameVirtualHost *:80
<VirtualHost *>
      ServerAdmin my_email_address
      DocumentRoot "/Library/WebServer/Documents/swervepoint/www/"
      ServerName swervepoint
      ErrorLog logs/swervepoint_error_log
      CustomLog logs/swervepoint_access_log common
</VirtualHost>

my browser can not recognize the server when i enter "http://swervepoint/" into the location bar.  i have stopped and started personal web server since adding the virtual host, too.

anyone have any pointers?

thanks,
brad
bradnobleAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

steve918Commented:
Have you set up swervepoint in your hosts file or otherwise configured swervepoint domain name to point to your server?

try adding something like this to your /etc/hosts
127.0.0.1      swervepoint
0
bradnobleAuthor Commented:
steve,

how do i access my hosts file?  

thanks -
brad
0
bradnobleAuthor Commented:
ok, i think i found out how to access it.  in the terminal, i entered:
bbedit /etc/hosts

and the doc launched in bbedit.  but, when i went to enter swervepoint into the hosts file, it said i did not have sufficient priveleges to make a change.  i am the only user of this computer.  any idea how i can modify my priveleges, or at least use my password to make a change to this file?

thanks -
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

steve918Commented:
try this:

sudo bbedit /etc/hosts

you should be prompted for your password, but it will allow you to edit /etc/hosts as root user.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bradnobleAuthor Commented:
steve, thanks.  is there any way to use the finder to access apache files?  i can't seem to do it.  but, i'm the administrator in the os.  do i not have the proper permissions?
0
bradnobleAuthor Commented:
also, this prevents apache from starting ... anything wrong with this part of the virtual host config, from above:

     ErrorLog logs/swervepoint_error_log
     CustomLog logs/swervepoint_access_log common
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.