Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-02-2013, 03:09 AM   #1
Registered: Aug 2011
Posts: 113

Rep: Reputation: Disabled
error when setting up multiple domains


I am currently managing my own website e.g. which is working fine and now would like to host another domain (e.g. on the same machine running Ubuntu Server 12.04 LTS.

I looked this up via google search and found that I need something like name-based virtual hosts.

So I made some changes in my apache2 httpd.conf by adding the following:
Listen 80

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot "/usr/local/apache2/htdocs"

<VirtualHost *:80>
DocumentRoot "/usr/local/apache2/htdocs/myothersite/otherexample"

Then, saved it and restart my apache2.

I got the following error message when trying to open the page

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

I have checked the file permission of the directory myothersite and they are apache:nogroup

I'm at a loss - I don't know what to do.

Any help would be greatly appreciated.

Thank you
Old 01-02-2013, 06:50 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,821

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591

In ubuntu/debian the vhosts in apache are defined using files under /etc/apache2/sites-available/
Have a look here to see how it's bone

Old 01-02-2013, 06:16 PM   #3
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: Disabled
It works. thank you for the link, bathory.

Well done
Old 01-27-2013, 07:57 PM   #4
Registered: Jan 2002
Distribution: Ubuntu10.04
Posts: 49

Rep: Reputation: 1
in that link, there is a video
in that video, Mr. wilson, say,,, for me it apparently not real domain name
so if I have, /* already registered these two domains and they point to my same public ip */
should I modify somewhere in linux file (like etc/host(...) and/or anything else)? to make my and be seen
in world wide web?
thanks any experts' advice/help in advance


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 - having trouble setting up multiple domains under debian etch walterbyrd Linux - Software 3 01-08-2010 07:03 PM
Multiple emails accounts(with different from domains) on multiple domains on 1 server locoputo Linux - Server 0 04-12-2009 06:29 PM
Multiple domains in LDAP and 1 samba server for all domains, what to do? xnomad Linux - Server 1 11-14-2008 09:12 AM
Sub Domains & Multiple Domains (Apache) lugos Linux - Server 1 09-01-2006 10:22 PM
Bind configuration for multiple sub-domains on multiple sites JF1980 Linux - Networking 3 08-31-2006 01:28 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration