Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-17-2004, 01:46 PM   #1
LQ Newbie
Registered: Jun 2004
Posts: 19

Rep: Reputation: 0
Question Apache Virtual Hosting Problems

I am trying to set up some virtual hosting on my local pc using apache and fc2. I have read alot about it online, but can't seem to get anything to work correctly. I have edited the httpd.conf file, I added the following lines:

NameVirtualHost *

ServerName localhost.localdomain
DocumentRoot "/var/www/html/"

   DocumentRoot "/home/user/User Test Website/"
   ServerName user.local
   ServerAdmin user@user.local   
I also added entries into my /etc/hosts file to reflect my new virtual host.

Code:		user.local user
I only want to be able to access these accounts locally for testing purposes. The problem is this: the default host works fine ( localhost.localdomain) however the second host keeps giving me this error:


You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
The folder permissons are set to owner:user group:apache. owner has rw access all others have read.

I would be very grateful if someone could help me get this all up and running. Thanks in advance.

Andrew D. Anderson
Old 09-17-2004, 02:10 PM   #2
LQ Newbie
Registered: Jun 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Thumbs up Never Mind!

I got it all figured out. Says how to fix it right there in the conf file. duh.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Virtual Hosting abhijeetudas Linux - Networking 2 05-29-2005 04:26 AM
Apache 2.x Virtual Hosting vbfischer Linux - Software 3 04-21-2005 05:17 PM
Virtual Hosting with apache, i think... dengi Linux - Software 1 10-26-2003 09:43 PM
Problems With Apache & Virtual Hosting Using Dynamic DNS moetjojo Linux - Networking 7 12-02-2002 04:51 AM
Help with Apache virtual hosting fin Linux - Newbie 1 04-30-2002 10:50 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration