?
Solved

mac osx 10.3 virtual host on apache

Posted on 2004-11-05
6
Medium Priority
?
323 Views
Last Modified: 2010-05-18
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
0
Comment
Question by:bradnoble
  • 4
  • 2
6 Comments
 
LVL 3

Expert Comment

by:steve918
ID: 12520520
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
 

Author Comment

by:bradnoble
ID: 12522534
steve,

how do i access my hosts file?  

thanks -
brad
0
 

Author Comment

by:bradnoble
ID: 12523291
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 3

Accepted Solution

by:
steve918 earned 2000 total points
ID: 12524240
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
 

Author Comment

by:bradnoble
ID: 12547541
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
 

Author Comment

by:bradnoble
ID: 12549387
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question