Jump to content

Apache VHosts


javaguy
 Share

Recommended Posts

I tried to set this up a couple months ago and didn't have much luck. I'm trying again.

 

Here's my VHosts.conf entry:

 

NameVirtualHost *:80

<VirtualHost *:80>

ServerAdmin javaguy@sammckee.com

DocumentRoot /home/javaguy/www/prod/benjaminalexandermckee

ServerName www.benjaminalexandermckee.com

ServerAlias benjaminalexandermckee.com *.benjaminalexandermckee.com

DirectoryIndex index.html index.htm index.php

</VirtualHost>

 

When I try to connect to http://benjaminalexandermckee.com I get one of those messages that says I don't have permission to access /. When I comment out the above stuff from VHosts.conf and try the same thing again, it then works fine except that I'm seeing an index of what's in /var/www/somethingsomethingsomething instead of the directory I want to see.

 

Yes, I've Googled it.

 

Thanks in advance!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...