Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My client site is:

I have created a (DNS Record A) pointing to the ip address of my server.

The request is reaching my server.

The problem:

How do I setup Virtual Host on appache to hit the root directory of the 2nd level domain, if the domain is not hosted on my server?

The target folder: -> Document Root /home/xyz/public_html/public


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

Apache doe's not resolve de domain name like a normal domain!!

share|improve this question

If you've got the A-record set up and the request is reaching your server, then all you need is to set up Apache. Assuming that:

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

is being returned by your server (and it should give you the address in the footer) then you probably just need to add a Location clause to your VirtualHost:

<VirtualHost *:80>
    # ... other directives ...

    # Add this bit:
    <Location />
        Order allow,deny
        Allow from all

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.